diff options
author | Luis R. Rodriguez <mcgrof@qca.qualcomm.com> | 2011-11-28 16:38:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-30 15:08:29 -0500 |
commit | e957abb60e293761d47d647b811d8547ebfbf5c3 (patch) | |
tree | 675f69e44cefe8d318d1a8dc30eff236840cf181 /drivers/net/wireless/brcm80211 | |
parent | d3f311349adde6ac533f9acdee45c49ce20cdb12 (diff) | |
download | blackbird-op-linux-e957abb60e293761d47d647b811d8547ebfbf5c3.tar.gz blackbird-op-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>
Diffstat (limited to 'drivers/net/wireless/brcm80211')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 6 |
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"); |