Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: atomisp: fix "dubious: !x | !y" sparse warning

Upon running Sparse, "warning: dubious: !x | !y" is brought to notice
for this file. Logical and bitwise OR are basically the same in this
context, so it doesn't cause a runtime bug. But let's change it to
logical OR to make it a little bit cleaner and silence the Sparse
warning.

Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Anant Thazhemadam and committed by
Mauro Carvalho Chehab
a4f37617 01049493

+1 -1
+1 -1
drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
··· 58 58 unsigned int ds_log2 = 0; 59 59 unsigned int out_width; 60 60 61 - if ((!out_info) | (!vf_info)) 61 + if ((!out_info) || (!vf_info)) 62 62 return -EINVAL; 63 63 64 64 out_width = out_info->res.width;