summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-01 18:21:11 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-10-08 19:02:08 +0300
commiteb1ca9a428fdc3f98be4898f6cd8bcb803878619 (patch)
treee15ca60ab150aaf21f3710760416184949fc42aa /crypto
parent9e5b5081fa117ae34eca94b63b1cb6d43dc28f10 (diff)
downloadlinux-eb1ca9a428fdc3f98be4898f6cd8bcb803878619.tar.xz
media: cx18: Don't check for address of video_dev
Clang warns that the address of a pointer will always evaluated as true in a boolean context. drivers/media/pci/cx18/cx18-driver.c:1255:23: warning: address of 'cx->streams[i].video_dev' will always evaluate to 'true' [-Wpointer-bool-conversion] if (&cx->streams[i].video_dev) ~~ ~~~~~~~~~~~~~~~^~~~~~~~~ 1 warning generated. Check whether v4l2_dev is null, not the address, so that the statement doesn't fire all the time. This check has been present since 2009, introduced by commit 21a278b85d3c ("V4L/DVB (11619): cx18: Simplify the work handler for outgoing mailbox commands") Reported-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions