ALSA: Evaluate condition in snd_BUG_ON() in non-debugging case
authorTakashi Iwai <tiwai@suse.de>
Fri, 7 Nov 2008 08:08:15 +0000 (09:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Nov 2008 08:08:15 +0000 (09:08 +0100)
commit945eed02cd619f525e097319cd3d18c58d01da87
treeb6cf5b5b17fea72d4c2140f0307f1790c173e595
parent63cf123bf5d538a066e4a899390c9ce56ab6df9f
ALSA: Evaluate condition in snd_BUG_ON() in non-debugging case

Change snd_BUG_ON() to evaluate the given condition, at least, in syntax
for avoiding compile warnings such as unused variables.  The compiler
should optimize out the condition evaluation in the real code, though.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h