diff options
| author | Aditya Srivastava <yashsri421@gmail.com> | 2021-01-10 15:15:25 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2021-01-25 17:21:10 +0300 |
| commit | 9264cabc12040dacc50f517e872d26d6e3a8a531 (patch) | |
| tree | f13ca21c2839635cf6017c495362e84d300b306c /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 33ae4623d544f1b76e0f656fa49e431b4503f23b (diff) | |
| download | linux-9264cabc12040dacc50f517e872d26d6e3a8a531.tar.xz | |
rtlwifi: rtl8821ae: fix bool comparison in expressions
There are certain conditional expressions in rtl8821ae, 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/rtl8821ae/phy.c,
"if (rtlefuse->autoload_failflag == false)" can be replaced with
"if (!rtlefuse->autoload_failflag)"
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-6-yashsri421@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
