diff mbox

P2P: Remove unused variable

Message ID CAFk-A4=4=khBBj+JNVcgaOvW028TZnw6cXubcmST0RiOiJ1OwQ@mail.gmail.com
State Accepted
Commit 78039295e6c53d9fa6a9bc81a65a123594c627f8
Headers show

Commit Message

Masashi Honma April 19, 2012, 4:24 a.m. UTC
Hello.

The "type" variable is not used in wpas_p2p_deinit_global().
So this patch removes it.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>



Regards,
Masashi Honma.

Comments

Jouni Malinen April 21, 2012, 3:22 p.m. UTC | #1
On Thu, Apr 19, 2012 at 01:24:07PM +0900, Masashi Honma wrote:
> The "type" variable is not used in wpas_p2p_deinit_global().
> So this patch removes it.

Thanks, applied.
diff mbox

Patch

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index d5c862c..bdfaecc 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -2503,7 +2503,6 @@  void wpas_p2p_deinit_global(struct wpa_global *global)
 	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 ||
@@ -2512,7 +2511,6 @@  void wpas_p2p_deinit_global(struct wpa_global *global)
 		}
 		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);
 	}