Commit 09ad44ef authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b513cac2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment