summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 16:24:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 07:38:52 -0200
commit7226d8ebdd3a944db44334f0a910e70abcc0abbf (patch)
tree675373a7632fff142e0d6f87487dbe03dfdc6248
parent1ab90587029b821ed47db9df8d79a5ebe49a02a8 (diff)
downloadlinux-7226d8ebdd3a944db44334f0a910e70abcc0abbf.tar.gz
linux-7226d8ebdd3a944db44334f0a910e70abcc0abbf.tar.bz2
linux-7226d8ebdd3a944db44334f0a910e70abcc0abbf.zip
[media] fmdrv: better define fmdbg() macro to avoid warnings
drivers/media/radio/wl128x/fmdrv_common.c:1619:47: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/radio/wl128x/fmdrv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv.h b/drivers/media/radio/wl128x/fmdrv.h
index d84ad9dad323..aac0f025f767 100644
--- a/drivers/media/radio/wl128x/fmdrv.h
+++ b/drivers/media/radio/wl128x/fmdrv.h
@@ -60,7 +60,7 @@
#define fmdbg(format, ...) \
printk(KERN_DEBUG "fmdrv: " format, ## __VA_ARGS__)
#else /* DEBUG */
-#define fmdbg(format, ...)
+#define fmdbg(format, ...) do {} while(0)
#endif
enum {
FM_MODE_OFF,