3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +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, int __storage_decrypt(struct l_settings *settings, const char *ssid,
bool *encrypt) bool *encrypt)
{ {
_auto_(l_settings_free) struct l_settings *security = NULL;
_auto_(l_free) uint8_t *encrypted = NULL; _auto_(l_free) uint8_t *encrypted = NULL;
_auto_(l_free) uint8_t *decrypted = NULL; _auto_(l_free) uint8_t *decrypted = NULL;
_auto_(l_free) uint8_t *salt = NULL; _auto_(l_free) uint8_t *salt = NULL;
_auto_(l_strv_free) char **embedded = NULL;
_auto_(l_strv_free) char **groups = NULL; _auto_(l_strv_free) char **groups = NULL;
char **i; char **i;
size_t elen, slen; size_t elen, slen;