From: Luis de Bethencourt Date: Mon, 28 Sep 2015 21:52:33 +0000 (+0100) Subject: staging: rtl8712: remove dead code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=96a384a7ed53b38fc2ba35fa5ef828a2c7368a3a;p=linux-beck.git staging: rtl8712: remove dead code The while() loop will only exit in a return or a goto ask_for_joinbss, which means it will never break and execute the return after it. Removing return _FAIL since it is dead code. Signed-off-by: Luis de Bethencourt Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c index fc5dbea08cb4..fbcb248b0235 100644 --- a/drivers/staging/rtl8712/rtl871x_mlme.c +++ b/drivers/staging/rtl8712/rtl871x_mlme.c @@ -1190,7 +1190,7 @@ int r8712_select_and_join_from_scan(struct mlme_priv *pmlmepriv) } } } - return _FAIL; + ask_for_joinbss: return r8712_joinbss_cmd(adapter, pnetwork); }