mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	
				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 
		
	
					 | 
			||
|---|---|---|
| .. | ||
| cx18-alsa-main.c | ||
| cx18-alsa-pcm.c | ||
| cx18-alsa-pcm.h | ||
| cx18-alsa.h | ||
| cx18-audio.c | ||
| cx18-audio.h | ||
| cx18-av-audio.c | ||
| cx18-av-core.c | ||
| cx18-av-core.h | ||
| cx18-av-firmware.c | ||
| cx18-av-vbi.c | ||
| cx18-cards.c | ||
| cx18-cards.h | ||
| cx18-controls.c | ||
| cx18-controls.h | ||
| cx18-driver.c | ||
| cx18-driver.h | ||
| cx18-dvb.c | ||
| cx18-dvb.h | ||
| cx18-fileops.c | ||
| cx18-fileops.h | ||
| cx18-firmware.c | ||
| cx18-firmware.h | ||
| cx18-gpio.c | ||
| cx18-gpio.h | ||
| cx18-i2c.c | ||
| cx18-i2c.h | ||
| cx18-io.c | ||
| cx18-io.h | ||
| cx18-ioctl.c | ||
| cx18-ioctl.h | ||
| cx18-irq.c | ||
| cx18-irq.h | ||
| cx18-mailbox.c | ||
| cx18-mailbox.h | ||
| cx18-queue.c | ||
| cx18-queue.h | ||
| cx18-scb.c | ||
| cx18-scb.h | ||
| cx18-streams.c | ||
| cx18-streams.h | ||
| cx18-vbi.c | ||
| cx18-vbi.h | ||
| cx18-version.h | ||
| cx18-video.c | ||
| cx18-video.h | ||
| cx23418.h | ||
| Kconfig | ||
| Makefile | ||