From: Takashi Iwai Date: Thu, 7 Nov 2013 17:38:47 +0000 (+0100) Subject: ASoC: dapm: Use WARN_ON() instead of BUG_ON() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~14^2^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf4edea863c435c302041cf8bb01c8b3ca729449;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed