3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

storage: remove unused variables

The auto macros apparently made it difficult for gcc to
detect, but clang was able to find them.
This commit is contained in:
James Prestwood 2022-06-10 12:52:40 -07:00 committed by Denis Kenzior
parent c7640f8346
commit 8a8c2fbe38

View File

@ -456,11 +456,9 @@ char *__storage_encrypt(const struct l_settings *settings, const char *name,
int __storage_decrypt(struct l_settings *settings, const char *ssid,
bool *encrypt)
{
_auto_(l_settings_free) struct l_settings *security = NULL;
_auto_(l_free) uint8_t *encrypted = NULL;
_auto_(l_free) uint8_t *decrypted = NULL;
_auto_(l_free) uint8_t *salt = NULL;
_auto_(l_strv_free) char **embedded = NULL;
_auto_(l_strv_free) char **groups = NULL;
char **i;
size_t elen, slen;