summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx23885
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 12:34:10 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 18:01:49 -0200
commita041e103d8571c6cde3ce646cfa2540af1f2a77a (patch)
treeeb2a223e59fb226884cc132d1ba12d068d42a3b2 /drivers/media/pci/cx23885
parentada73eee1246768d5ec6f1e3b8882a5dd0456266 (diff)
downloadop-kernel-dev-a041e103d8571c6cde3ce646cfa2540af1f2a77a.zip
op-kernel-dev-a041e103d8571c6cde3ce646cfa2540af1f2a77a.tar.gz
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx23885')
-rw-r--r--drivers/media/pci/cx23885/cx23885-alsa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-alsa.c b/drivers/media/pci/cx23885/cx23885-alsa.c
index 7951692..c6c9bd5 100644
--- a/drivers/media/pci/cx23885/cx23885-alsa.c
+++ b/drivers/media/pci/cx23885/cx23885-alsa.c
@@ -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)
OpenPOWER on IntegriCloud