]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Use WARN_ON() instead of BUG_ON()
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Nov 2013 17:38:47 +0000 (18:38 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 7 Nov 2013 19:59:53 +0000 (19:59 +0000)
commit664ca096d6d594194f72dd15d3039bd8aff75a95
treefd1443d7fa34648d88b248dfee49034e2d8e82e1
parenta714cc458c5c539b82841d39f9e5c9e4617ce660
ASoC: dapm: Use WARN_ON() instead of BUG_ON()

Leaving BUG_ON() in a core layer like dapm is rather inappropriate as
it leads to panic(), even though sanity checks might be still useful
for debugging.
Instead, Use WARN_ON(), and handle the error cases accordingly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c