Re: [PATCH] Make snd_BUG_ON() always evaluate and return the conditional expression.

2013-03-05 Thread Christine Spang
On 03/05/2013 04:05 AM, Takashi Iwai wrote: > At Mon, 4 Mar 2013 17:02:59 -0500, > Christine Spang wrote: >> Having snd_BUG_ON() only evaluate its conditional when CONFIG_SND_DEBUG >> is set leads to frequent bugs, since other similar macros in the kernel >> have differ

[PATCH] Make snd_BUG_ON() always evaluate and return the conditional expression.

2013-03-04 Thread Christine Spang
Having snd_BUG_ON() only evaluate its conditional when CONFIG_SND_DEBUG is set leads to frequent bugs, since other similar macros in the kernel have different behavior. Let's make snd_BUG_ON() act like those macros so it will stop being accidentally misused. Signed-off-by: Christine