diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-12 23:19:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-12 23:19:08 +0100 |
commit | e951f7e85de428bcbbe8034cd353e17799baa35b (patch) | |
tree | 62b4bc4430ae17f8810bf7d7ec802a21403d6c0d | |
parent | Merge remote-tracking branch 'asoc/topic/omap' into asoc-next (diff) | |
parent | ASoC: wm8994: Fix variable double use (diff) | |
download | linux-e951f7e85de428bcbbe8034cd353e17799baa35b.tar.xz linux-e951f7e85de428bcbbe8034cd353e17799baa35b.zip |
Merge remote-tracking branch 'asoc/topic/wm8994' into asoc-next
-rw-r--r-- | sound/soc/codecs/wm8994.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 3b269fa226bd..c9bd445c4976 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3737,7 +3737,7 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data) { struct wm8994_priv *wm8994 = data; struct snd_soc_codec *codec = wm8994->hubs.codec; - int reg, count; + int reg, count, ret; /* * Jack detection may have detected a removal simulataneously @@ -3783,11 +3783,11 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data) /* Avoid a transient report when the accessory is being removed */ if (wm8994->jackdet) { - reg = snd_soc_read(codec, WM1811_JACKDET_CTRL); - if (reg < 0) { + ret = snd_soc_read(codec, WM1811_JACKDET_CTRL); + if (ret < 0) { dev_err(codec->dev, "Failed to read jack status: %d\n", - reg); - } else if (!(reg & WM1811_JACKDET_LVL)) { + ret); + } else if (!(ret & WM1811_JACKDET_LVL)) { dev_dbg(codec->dev, "Ignoring removed jack\n"); return IRQ_HANDLED; } |