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>
This commit is contained in:

committed by
John W. Linville

parent
4b9d8d67b4
commit
e10542c447
@@ -523,7 +523,7 @@ static void _rtl_query_shortgi(struct ieee80211_hw *hw,
|
||||
mac->opmode == NL80211_IFTYPE_ADHOC)
|
||||
bw_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40;
|
||||
|
||||
if ((bw_40 == true) && sgi_40)
|
||||
if (bw_40 && sgi_40)
|
||||
tcb_desc->use_shortgi = true;
|
||||
else if ((bw_40 == false) && sgi_20)
|
||||
tcb_desc->use_shortgi = true;
|
||||
|
Reference in New Issue
Block a user