summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/ps.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-06-20 03:47:51 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-20 21:47:43 +0200
commite10542c447abf7c840931ff12f7d0dee976ca2ea (patch)
treeae254d633339b2617e4062fe070d2f4bc274cfb2 /drivers/net/wireless/rtlwifi/ps.c
parentrtlwifi: rtl8192cu: Remove unused parameter (diff)
downloadlinux-e10542c447abf7c840931ff12f7d0dee976ca2ea.tar.xz
linux-e10542c447abf7c840931ff12f7d0dee976ca2ea.zip
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/ps.c')
-rw-r--r--drivers/net/wireless/rtlwifi/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/ps.c b/drivers/net/wireless/rtlwifi/ps.c
index 3eb039a05286..a693feffbe72 100644
--- a/drivers/net/wireless/rtlwifi/ps.c
+++ b/drivers/net/wireless/rtlwifi/ps.c
@@ -90,7 +90,7 @@ bool rtl_ps_set_rf_state(struct ieee80211_hw *hw,
ppsc->rfoff_reason &= (~changesource);
if ((changesource == RF_CHANGE_BY_HW) &&
- (ppsc->hwradiooff == true)) {
+ (ppsc->hwradiooff)) {
ppsc->hwradiooff = false;
}