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>
This commit is contained in:
parent
c3a5536a7d
commit
96a384a7ed
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user