[PATCH] Remove unreachable code in p2p_stop_find
Eduardo Abinader
eduardo.abinader
Fri Aug 1 09:31:07 PDT 2014
As wpas_p2p_stop_find_open always returns 0, the return
check in wpas_p2p_stop_find was useless.
Signed-off-by: Eduardo Abinader <eduardo.abinader at openbossa.org>
---
wpa_supplicant/p2p_supplicant.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index f1269ad..cd120bc 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -5726,8 +5726,8 @@ static int wpas_p2p_stop_find_oper(struct wpa_supplicant *wpa_s)
void wpas_p2p_stop_find(struct wpa_supplicant *wpa_s)
{
- if (wpas_p2p_stop_find_oper(wpa_s) > 0)
- return;
+ wpas_p2p_stop_find_oper(wpa_s);
+
wpas_p2p_remove_pending_group_interface(wpa_s);
}
--
1.9.1
More information about the Hostap
mailing list