summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/mac.h
diff options
context:
space:
mode:
authorAditya Srivastava <yashsri421@gmail.com>2021-01-10 17:45:22 +0530
committerKalle Valo <kvalo@codeaurora.org>2021-01-25 16:21:05 +0200
commitf7c76283fc5f532027404a346c69ebd111c92fdc (patch)
tree072b957d360b055b15f449722bc446b9f1cd4f28 /drivers/net/wireless/realtek/rtw88/mac.h
parentd8cbaa3de403af6a9cf56598171d2c130ef56f0d (diff)
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
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/mac.h')
0 files changed, 0 insertions, 0 deletions