Home
last modified time | relevance | path

Searched hist:d8cbaa3de403af6a9cf56598171d2c130ef56f0d (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dps.cdiff d8cbaa3de403af6a9cf56598171d2c130ef56f0d Sun Jan 10 13:15:21 CET 2021 Aditya Srivastava <yashsri421@gmail.com> rtlwifi: rtl_pci: fix bool comparison in expressions

There are certain conditional expressions in rtl_pci, 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/ps.c,
"if (find_p2p_ie == true)" can be replaced with "if (find_p2p_ie)"

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-2-yashsri421@gmail.com