OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b513cac
)
cw1200: remove some dead code
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 4 Dec 2015 13:15:23 +0000
(16:15 +0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 11 Dec 2015 11:15:08 +0000
(13:15 +0200)
If the mode is NL80211_IFTYPE_UNSPECIFIED then we return success at the
start of the function so this condition is never true.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/sta.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/st/cw1200/sta.c
b/drivers/net/wireless/st/cw1200/sta.c
index
95a7fdb
..
06321c7
100644
(file)
--- a/
drivers/net/wireless/st/cw1200/sta.c
+++ b/
drivers/net/wireless/st/cw1200/sta.c
@@
-873,12
+873,6
@@
int cw1200_set_rts_threshold(struct ieee80211_hw *hw, u32 value)
else
val32 = 0; /* disabled */
- if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) {
- /* device is down, can _not_ set threshold */
- ret = -ENODEV;
- goto out;
- }
-
if (priv->rts_threshold == value)
goto out;