summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8776.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8776.c')
-rw-r--r--sound/soc/codecs/wm8776.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c
index 942d58e..f31017e 100644
--- a/sound/soc/codecs/wm8776.c
+++ b/sound/soc/codecs/wm8776.c
@@ -325,8 +325,7 @@ static int wm8776_set_sysclk(struct snd_soc_dai *dai,
struct snd_soc_codec *codec = dai->codec;
struct wm8776_priv *wm8776 = snd_soc_codec_get_drvdata(codec);
- if (WARN_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk)))
- return -EINVAL;
+ BUG_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk));
wm8776->sysclk[dai->driver->id] = freq;