]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Remove unecessary sanity check for global p2p
authorEduardo Abinader <eduardo.abinader@openbossa.org>
Sat, 20 Sep 2014 20:51:01 +0000 (16:51 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 28 Sep 2014 08:03:48 +0000 (11:03 +0300)
This check is already being done on wpas_p2p_deinit_iface.
Of course, it is assumed wpa_s is not deinit when reaches
that point as a matter of fact.

Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
wpa_supplicant/p2p_supplicant.c

index c64665ddb6f319e0db2fc1ae876a282a6ffd3c13..e206def7a7a018cb624b08f3432ac94b5581ab9c 100644 (file)
@@ -4080,9 +4080,6 @@ static void wpas_p2p_deinit_global(struct wpa_global *global)
 
        wpas_p2p_service_flush(global->p2p_init_wpa_s);
 
-       if (global->p2p == NULL)
-               return;
-
        /* Remove remaining P2P group interfaces */
        while (wpa_s && wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
                wpa_s = wpa_s->next;