summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/st/cw1200/sta.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-12-04 16:15:23 +0300
committerKalle Valo <kvalo@codeaurora.org>2015-12-11 13:15:08 +0200
commit09ad44efe722161bbc26317b6c2a43dfd86f023b (patch)
treebc8a37a1cc29fdc92c5705dd60178f871f2779c8 /drivers/net/wireless/st/cw1200/sta.c
parentb513cac22ad6527bd85042766afa8eacf1adffbe (diff)
cw1200: remove some dead code
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>
Diffstat (limited to 'drivers/net/wireless/st/cw1200/sta.c')
-rw-r--r--drivers/net/wireless/st/cw1200/sta.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/st/cw1200/sta.c b/drivers/net/wireless/st/cw1200/sta.c
index 95a7fdb3cc1c..06321c799c90 100644
--- 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;