staging: rtl8192u: Using comparison to true is error prone
PATCH 1/1 staging: rtl8192u: Using comparison to true is error prone
fix below issue reported by checkpatch:
CHECK: Using comparison to true is error prone
CHECK: Using comparison to false is error prone
Signed-off-by John Oldman <[email protected]>
--- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +2 -2
@@ -372,9 +372,9 @@ ieee80211_query_HTCapShortGI(struct ieee80211_device *ieee, struct cb_desc *tcb_return ; } -if ((pHTInfo->bCurBW40MHz == true) && pHTInfo->bCurShortGI40MHz) +if (pHTInfo->bCurBW40MHz && pHTInfo->bCurShortGI40MHz) tcb_desc->bUseShortGI = true; -else if ((pHTInfo->bCurBW40MHz == false) && pHTInfo->bCurShortGI20MHz) +else if (!pHTInfo->bCurBW40MHz && pHTInfo->bCurShortGI20MHz) tcb_desc->bUseShortGI = true; }
Signature · 1 line
2.17.1