The "type" variable is not used in wpas_p2p_deinit_global().
So this patch removes it.
Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
while (wpa_s && wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
wpa_s = wpa_s->next;
while (wpa_s) {
- enum wpa_driver_if_type type;
tmp = global->ifaces;
while (tmp &&
(tmp == wpa_s ||
}
if (tmp == NULL)
break;
- type = wpas_p2p_if_type(tmp->p2p_group_interface);
/* Disconnect from the P2P group and deinit the interface */
wpas_p2p_disconnect(tmp);
}