]> git.baikalelectronics.ru Git - kernel.git/commit
[media] ivtv: fix two smatch warnings
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 12:08:09 +0000 (09:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 14:26:36 +0000 (11:26 -0300)
commitbe9d054846ac29c65346447517c0c19945c83128
tree76f22a0f94c12d2b279777f87c4b068fccd8d8ce
parent73ca4ab00d3d004acde121bbe060af9e37593920
[media] ivtv: fix two smatch warnings

Smatch currently produces two warnings:
drivers/media/pci/ivtv/ivtv-fileops.c:901 ivtv_v4l2_close() warn: suspicious bitop condition
drivers/media/pci/ivtv/ivtv-fileops.c:1026 ivtv_open() warn: suspicious bitop condition

Those are false positives, but it is not hard to get rid of them by
using a different way to evaluate the macro, splitting the logical
boolean evaluation from the bitmap one.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ivtv/ivtv-driver.h