]> git.karo-electronics.de Git - linux-beck.git/commit
ALSA: Make snd_BUG_ON() always evaluate and return the conditional expression
authorChristine Spang <christine.spang@oracle.com>
Mon, 4 Mar 2013 22:02:59 +0000 (17:02 -0500)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Mar 2013 08:33:34 +0000 (09:33 +0100)
commitd5702162f85526319c848c667df49ee1754dccef
tree15285b7b5a202a7f5629080fc3224a358378d0f1
parent8ba955cef30921417dffba901a8af5a2662a1dec
ALSA: Make snd_BUG_ON() always evaluate and return the conditional expression

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 Spang <christine.spang@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/DocBook/writing-an-alsa-driver.tmpl
include/sound/core.h