diff options
| author | Aditya Srivastava <yashsri421@gmail.com> | 2020-12-14 14:27:16 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 23:28:51 +0100 |
| commit | c606970d4250dfb95869a563975c08bab148137a (patch) | |
| tree | fe8d653ac25f1b55fa983b8dcc8ff4ff6bebe53f /tools/perf/scripts/python | |
| parent | ba11bbf303fafb33989e95473e409f6ab412b18d (diff) | |
| download | linux-c606970d4250dfb95869a563975c08bab148137a.tar.gz linux-c606970d4250dfb95869a563975c08bab148137a.zip | |
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/20201214132716.28157-1-yashsri421@gmail.com
Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
