P2P: Remove unecessary sanity check for global p2p
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>
This commit is contained in:
parent
ee285df457
commit
e5fdc05dce
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue