diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2015-09-28 21:52:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 02:30:07 (GMT) |
commit | 96a384a7ed53b38fc2ba35fa5ef828a2c7368a3a (patch) | |
tree | d181b92745a781da864ee54acb285774b47ef4d4 /drivers/staging/rtl8712 | |
parent | c3a5536a7da427283c4709d0bbe5665fe8d3c810 (diff) | |
download | linux-96a384a7ed53b38fc2ba35fa5ef828a2c7368a3a.tar.xz |
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 <luisbg@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c index fc5dbea..fbcb248 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); } |