aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/core.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-11-06 15:05:21 -0500
committerTakashi Iwai <tiwai@suse.de>2008-11-06 19:31:51 -0500
commitfcef7836a31c6432b41a38867d413ed3d6aa8261 (patch)
tree2841d74196685f84ace50c4682d956e229a852fc /include/sound/core.h
parent55e03a68d2489d116a5c5e8111ecef3f69831ed6 (diff)
alsa: fix snd_BUG_on() and friends
sound/pci/pcxhr/pcxhr_core.c: In function 'pcxhr_set_pipe_cmd_params': sound/pci/pcxhr/pcxhr_core.c:700: warning: statement with no effect sound/pci/pcxhr/pcxhr_core.c:706: warning: statement with no effect sound/pci/pcxhr/pcxhr_core.c:710: warning: statement with no effect Due to try to fix this, and be more conventional about the empty stubs. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/core.h')
-rw-r--r--include/sound/core.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index e5eec5f73502..7e5589472681 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -388,9 +388,13 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
388 388
389#else /* !CONFIG_SND_DEBUG */ 389#else /* !CONFIG_SND_DEBUG */
390 390
391#define snd_printd(fmt, args...) /* nothing */ 391#define snd_printd(fmt, args...) do { } while (0)
392#define snd_BUG() /* nothing */ 392#define snd_BUG() do { } while (0)
393#define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ 393static inline int __snd_bug_on(void)
394{
395 return 0;
396}
397#define snd_BUG_ON(cond) __snd_bug_on() /* always false */
394 398
395#endif /* CONFIG_SND_DEBUG */ 399#endif /* CONFIG_SND_DEBUG */
396 400