diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-04 08:15:23 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-12-11 06:15:08 -0500 |
commit | 09ad44efe722161bbc26317b6c2a43dfd86f023b (patch) | |
tree | bc8a37a1cc29fdc92c5705dd60178f871f2779c8 | |
parent | b513cac22ad6527bd85042766afa8eacf1adffbe (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>
-rw-r--r-- | drivers/net/wireless/st/cw1200/sta.c | 6 |
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) | |||
873 | else | 873 | else |
874 | val32 = 0; /* disabled */ | 874 | val32 = 0; /* disabled */ |
875 | 875 | ||
876 | if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) { | ||
877 | /* device is down, can _not_ set threshold */ | ||
878 | ret = -ENODEV; | ||
879 | goto out; | ||
880 | } | ||
881 | |||
882 | if (priv->rts_threshold == value) | 876 | if (priv->rts_threshold == value) |
883 | goto out; | 877 | goto out; |
884 | 878 | ||