linux/drivers/media/pci/cx18
Nathan Chancellor eb1ca9a428 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 21a278b85d ("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>
2018-10-08 12:02:08 -04:00
..
cx18-alsa-main.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18-alsa-pcm.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18-alsa-pcm.h
cx18-alsa.h
cx18-audio.c
cx18-audio.h
cx18-av-audio.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-av-core.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-av-core.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-av-firmware.c
cx18-av-vbi.c
cx18-cards.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18-cards.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-controls.c
cx18-controls.h
cx18-driver.c media: cx18: Don't check for address of video_dev 2018-10-08 12:02:08 -04:00
cx18-driver.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-dvb.c media: dvb: fix location of get_dvb_firmware script 2018-06-15 18:10:01 -03:00
cx18-dvb.h
cx18-fileops.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
cx18-fileops.h media: annotate ->poll() instances 2017-11-27 16:20:06 -05:00
cx18-firmware.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-firmware.h
cx18-gpio.c
cx18-gpio.h
cx18-i2c.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18-ioctl.h
cx18-irq.c
cx18-irq.h
cx18-mailbox.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-mailbox.h
cx18-queue.c
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
cx18-streams.h
cx18-vbi.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
Kconfig
Makefile media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00