linux-stable/drivers/net/wireless/realtek/rtlwifi/rtl8192c
Aditya Srivastava f7c76283fc rtlwifi: rtl8192c-common: fix bool comparison in expressions
There are certain conditional expressions in rtl8192c-common, 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

E.g., in drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c,
"else if (initialized == false) {" can be replaced with
"else if (!initialized) {"

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-3-yashsri421@gmail.com
2021-01-25 16:21:05 +02:00
..
dm_common.c rtlwifi: rtl8192c-common: fix bool comparison in expressions 2021-01-25 16:21:05 +02:00
dm_common.h rtlwifi: rtl8192{c,u}: Remove CamelCase variables 2019-02-19 17:02:56 +02:00
fw_common.c rtlwifi: rtl8192-common: Rename RT_TRACE to rtl_dbg 2020-08-31 18:25:49 +03:00
fw_common.h rtlwifi: rtl8192ce: rtl8192c_com: Remove usage of private bit manipulation macros 2019-12-18 20:22:28 +02:00
main.c rtlwifi: rtl8192com: Fix blank line problems 2019-02-28 10:30:05 +02:00
Makefile
phy_common.c rtlwifi: Use ffs in <foo>_phy_calculate_bit_shift 2020-09-22 10:16:41 +03:00
phy_common.h rtlwifi: rtl8192{c,u}: Remove CamelCase variables 2019-02-19 17:02:56 +02:00