summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-06-20 10:47:51 +0900
committerJohn W. Linville <linville@tuxdriver.com>2011-06-20 15:47:43 -0400
commite10542c447abf7c840931ff12f7d0dee976ca2ea (patch)
treeae254d633339b2617e4062fe070d2f4bc274cfb2 /drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
parent4b9d8d67b44aae18e1c4b71281f5cfc0f2105cf6 (diff)
downloadop-kernel-dev-e10542c447abf7c840931ff12f7d0dee976ca2ea.zip
op-kernel-dev-e10542c447abf7c840931ff12f7d0dee976ca2ea.tar.gz
rtlwifi: rtl8192{c,ce,cu,se}: Remove comparisons of booleans with true
These are a potential source of confusion, as most C code treats all non-zero values as true. Signed-off-by: Mike McCormack <mikem@ring3k.org> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu/rf.c')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192cu/rf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
index c7576ec..1e851aa 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
@@ -82,7 +82,7 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
(rtlefuse->external_pa))
turbo_scanoff = true;
}
- if (mac->act_scanning == true) {
+ if (mac->act_scanning) {
tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
if (turbo_scanoff) {
OpenPOWER on IntegriCloud