diff options
| author | Aditya Srivastava <[email protected]> | 2020-12-14 14:27:16 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-03-22 23:28:51 +0100 |
| commit | c606970d4250dfb95869a563975c08bab148137a (patch) | |
| tree | fe8d653ac25f1b55fa983b8dcc8ff4ff6bebe53f /tools/perf/scripts/python/flamegraph.py | |
| parent | ba11bbf303fafb33989e95473e409f6ab412b18d (diff) | |
media: atomisp: replace boolean comparison of values with bool variables
There are certain expressions in a condition in atomisp, where a boolean
variable is compared with true/false in forms such as (foo == true)
or (false != bar), which does not comply with the coding style rule by
checkpatch.pl (CHK: BOOL_COMPARISON), according to which the boolean
variables should be themselves used in the condition, rather than
comparing with true or false.
E.g. In drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:
if (asd->stream_prepared == false) {
Can be replaced with:
if (!asd->stream_prepared) {
Replace such expressions with boolean variables appropriately.
Link: https://lore.kernel.org/linux-media/[email protected]
Signed-off-by: Aditya Srivastava <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions