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)
commit6c452bdac799e5ab94d658ea3517cfd57d832e6e
tree5125fc75cd1ea721ce7fa4946cbe106499faea73
parenta6ed0608bd289b45a9e42e3b0f33ff55bdac9b0f
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