ASoC: mid-x86: Use WARN_ON() instead of BUG_ON()
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2013 17:40:01 +0000 (18:40 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 7 Nov 2013 19:55:11 +0000 (19:55 +0000)
commit656a22a105c8135a515daae3d79ede7b472c18ec
treefccf6c9e6f42803215bc11c2d1ea191025382ec4
parentfb2e3e70193f6757e536dfdecf21be2e6ee308d4
ASoC: mid-x86: Use WARN_ON() instead of BUG_ON()

BUG_ON() is rather useless for debugging as it leads to panic().
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/mid-x86/sst_platform.c