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>

authored by Andrew Morton and committed by Takashi Iwai fcef7836 55e03a68

+7 -3
+7 -3
include/sound/core.h
··· 388 389 #else /* !CONFIG_SND_DEBUG */ 390 391 - #define snd_printd(fmt, args...) /* nothing */ 392 - #define snd_BUG() /* nothing */ 393 - #define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ 394 395 #endif /* CONFIG_SND_DEBUG */ 396
··· 388 389 #else /* !CONFIG_SND_DEBUG */ 390 391 + #define snd_printd(fmt, args...) do { } while (0) 392 + #define snd_BUG() do { } while (0) 393 + static inline int __snd_bug_on(void) 394 + { 395 + return 0; 396 + } 397 + #define snd_BUG_ON(cond) __snd_bug_on() /* always false */ 398 399 #endif /* CONFIG_SND_DEBUG */ 400