summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez2011-11-28 22:38:49 +0100
committerJohn W. Linville2011-11-30 21:08:29 +0100
commite957abb60e293761d47d647b811d8547ebfbf5c3 (patch)
tree675f69e44cefe8d318d1a8dc30eff236840cf181
parentbrcm80211: fix usage of set tx power (diff)
downloadkernel-qcow2-linux-e957abb60e293761d47d647b811d8547ebfbf5c3.tar.gz
kernel-qcow2-linux-e957abb60e293761d47d647b811d8547ebfbf5c3.tar.xz
kernel-qcow2-linux-e957abb60e293761d47d647b811d8547ebfbf5c3.zip
brcm80211: avoid code duplication on set tx power
Both cases are doing the same so treat the switch cases for both as an "or". Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
index fc9898192ab4..f23b0c3e4ea3 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
@@ -1447,12 +1447,6 @@ brcmf_cfg80211_set_tx_power(struct wiphy *wiphy,
case NL80211_TX_POWER_AUTOMATIC:
break;
case NL80211_TX_POWER_LIMITED:
- if (dbm < 0) {
- WL_ERR("TX_POWER_LIMITED - dbm is negative\n");
- err = -EINVAL;
- goto done;
- }
- break;
case NL80211_TX_POWER_FIXED:
if (dbm < 0) {
WL_ERR("TX_POWER_FIXED - dbm is negative\n");