]> Pileus Git - ~andy/linux/commitdiff
[media] fmdrv: better define fmdbg() macro to avoid warnings
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:24:02 +0000 (16:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:52 +0000 (07:38 -0200)
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>
drivers/media/radio/wl128x/fmdrv.h

index d84ad9dad323c25bea0e7b0972c1e3f72295ff28..aac0f025f7678c582a08fa5a8592f53091f6124b 100644 (file)
@@ -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,