]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused variable update
authorJouni Malinen <jouni@codeaurora.org>
Mon, 2 Nov 2020 14:36:14 +0000 (16:36 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Nov 2020 14:36:14 +0000 (16:36 +0200)
Commit e8b85c078e73 ("iface match: Unspecified matched interfaces should
not log driver fails") removed the only use of the added interface wpa_s
pointer, but left that pointer setting in place. Remove it to keep
static analyzers happy.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index 01ba032f42c1db47c83d956d46bd1e33b4f4a724..fba6d0eaf1060d023e2c08388f43f38e7968a897 100644 (file)
@@ -6789,7 +6789,7 @@ static int wpa_supplicant_match_existing(struct wpa_global *global)
                        continue;
                iface = wpa_supplicant_match_iface(global, ifi->if_name);
                if (iface) {
-                       wpa_s = wpa_supplicant_add_iface(global, iface, NULL);
+                       wpa_supplicant_add_iface(global, iface, NULL);
                        os_free(iface);
                }
        }