aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAditya Srivastava <[email protected]>2020-12-21 01:12:24 +0530
committerGreg Kroah-Hartman <[email protected]>2020-12-28 15:12:25 +0100
commit1e9a9c7cba3ca5cbd3201a9f3b8dc6e8d7bef1c0 (patch)
tree7d1226b6e78406c1df53f0ed76130d4424a57204 /tools/perf/scripts/python
parentf31559af97a0eabd467e4719253675b7dccb8a46 (diff)
staging: rtl8192e: fix bool comparison in expressions
There are certain conditional expressions in rtl8192e, 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/staging/rtl8192e/rtl8192e/r8192E_dev.c, "if (Type == true)" can be replaced with: "if (Type)" Replace all such expressions with the bool variables appropriately Signed-off-by: Aditya Srivastava <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions