Skip to content

Commit

Permalink
[media] fmdrv: better define fmdbg() macro to avoid warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 1ab9058 commit 7226d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/radio/wl128x/fmdrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7226d8e

Please sign in to comment.