projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a5536
)
staging: rtl8712: remove dead code
author
Luis de Bethencourt
<
[email protected]
>
Mon, 28 Sep 2015 21:52:33 +0000
(22:52 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 29 Sep 2015 02:30:07 +0000
(
04:30
+0200)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rtl8712/rtl871x_mlme.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/rtl871x_mlme.c
b/drivers/staging/rtl8712/rtl871x_mlme.c
index fc5dbea08cb490d53cda38f81c3e3404fac09b6a..fbcb248b0235dd3bf21f98bbcc8e6b55585262e5 100644
(file)
--- 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);
}