diff options
author | Mike McCormack <mikem@ring3k.org> | 2011-06-19 21:47:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-20 15:47:43 -0400 |
commit | e10542c447abf7c840931ff12f7d0dee976ca2ea (patch) | |
tree | ae254d633339b2617e4062fe070d2f4bc274cfb2 /drivers/net/wireless/rtlwifi/core.c | |
parent | 4b9d8d67b44aae18e1c4b71281f5cfc0f2105cf6 (diff) |
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/core.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index 3313ce6ffaad..03ce69660b26 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -443,11 +443,11 @@ static int rtl_op_sta_add(struct ieee80211_hw *hw, | |||
443 | sta_entry->wireless_mode = WIRELESS_MODE_G; | 443 | sta_entry->wireless_mode = WIRELESS_MODE_G; |
444 | if (sta->supp_rates[0] <= 0xf) | 444 | if (sta->supp_rates[0] <= 0xf) |
445 | sta_entry->wireless_mode = WIRELESS_MODE_B; | 445 | sta_entry->wireless_mode = WIRELESS_MODE_B; |
446 | if (sta->ht_cap.ht_supported == true) | 446 | if (sta->ht_cap.ht_supported) |
447 | sta_entry->wireless_mode = WIRELESS_MODE_N_24G; | 447 | sta_entry->wireless_mode = WIRELESS_MODE_N_24G; |
448 | } else if (rtlhal->current_bandtype == BAND_ON_5G) { | 448 | } else if (rtlhal->current_bandtype == BAND_ON_5G) { |
449 | sta_entry->wireless_mode = WIRELESS_MODE_A; | 449 | sta_entry->wireless_mode = WIRELESS_MODE_A; |
450 | if (sta->ht_cap.ht_supported == true) | 450 | if (sta->ht_cap.ht_supported) |
451 | sta_entry->wireless_mode = WIRELESS_MODE_N_24G; | 451 | sta_entry->wireless_mode = WIRELESS_MODE_N_24G; |
452 | } | 452 | } |
453 | 453 | ||