]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Fix BUG_ON() and WARN_ON() usages
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2013 17:40:00 +0000 (18:40 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 7 Nov 2013 19:55:21 +0000 (19:55 +0000)
commita714cc458c5c539b82841d39f9e5c9e4617ce660
tree5125fc75cd1ea721ce7fa4946cbe106499faea73
parenta5b6472d689f6e9a842db1ed3565e92f2f1d4e22
ASoC: wm_adsp: Fix BUG_ON() and WARN_ON() usages

This patch does:
- Move the sanity check with WARN_ON() in wm_adsp_region_to_reg() and
  remove the checks in the callers,
- Fix wrong WARN_ON() usages, replaced with WARN(),
- Fix unreachable or wrong BUG_ON() usages and replace with WARN_ON().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm_adsp.c