Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a041e103 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx23885-alsa: fix a false gcc warning at dprintk()



Change dprintk logic to avoid the following warning:
drivers/media/pci/cx23885/cx23885-alsa.c: In function 'cx23885_audio_register':
drivers/media/pci/cx23885/cx23885-alsa.c:515:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ada73eee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -45,8 +45,10 @@

#define AUDIO_SRAM_CHANNEL	SRAM_CH07

#define dprintk(level, fmt, arg...)	if (audio_debug >= level) \
	printk(KERN_INFO "%s: " fmt, chip->dev->name , ## arg)
#define dprintk(level, fmt, arg...) do {				\
	if (audio_debug + 1 > level)					\
		printk(KERN_INFO "%s: " fmt, chip->dev->name , ## arg);	\
} while(0)

#define dprintk_core(level, fmt, arg...)	if (audio_debug >= level) \
	printk(KERN_DEBUG "%s: " fmt, chip->dev->name , ## arg)