OSDN Git Service

rtlwifi: rtl8192se: fix bool comparison in expressions
authorAditya Srivastava <yashsri421@gmail.com>
Sun, 10 Jan 2021 12:15:24 +0000 (17:45 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 14:21:08 +0000 (16:21 +0200)
commit33ae4623d544f1b76e0f656fa49e431b4503f23b
tree2504bcc3af7bd3f27dfff1a987391a3b7ed3f350
parent64338f0dfd6a3be20453789c6a4b2c7246e2aef8
rtlwifi: rtl8192se: fix bool comparison in expressions

There are certain conditional expressions in rtl8192se, where a boolean
variable is compared with true/false, in forms such as (foo == true) or
(false != bar), which does not comply with checkpatch.pl (CHECK:
BOOL_COMPARISON), according to which boolean variables should be
themselves used in the condition, rather than comparing with true/false

Replace all such expressions with the bool variables appropriately

Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210110121525.2407-5-yashsri421@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c