ASoC: tas571x: Kill BUG_ON() usage
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Sep 2017 08:59:16 +0000 (10:59 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 20 Sep 2017 11:45:19 +0000 (12:45 +0100)
commita029ef45179d72945c7ae0a11f97e8012a5574ac
tree1c774cc942ff16f2d9eccdac38f585a4ceceb39d
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: tas571x: Kill BUG_ON() usage

Don't use BUG_ON() for a non-critical sanity check on production
systems.  This patch replaces with a softer WARN_ON() and an error
path.

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