X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fsound%2Fcore.h;h=1508c4ec1ba929162fa14651426d27dc9ab81437;hb=6b425660f45cdea177fe95388e081afa947b1506;hp=35424a971b7a68d89ab75630eac1e197ebae8619;hpb=7aeb6d7d20185b7cede1ce5f6bd8d762e49bda6d;p=linux-2.6-omap-h63xx.git diff --git a/include/sound/core.h b/include/sound/core.h index 35424a971b7..1508c4ec1ba 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -385,9 +385,13 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) #else /* !CONFIG_SND_DEBUG */ -#define snd_printd(fmt, args...) /* nothing */ -#define snd_BUG() /* nothing */ -#define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ +#define snd_printd(fmt, args...) do { } while (0) +#define snd_BUG() do { } while (0) +static inline int __snd_bug_on(void) +{ + return 0; +} +#define snd_BUG_ON(cond) __snd_bug_on() /* always false */ #endif /* CONFIG_SND_DEBUG */