Commit d1498b13 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

ASoC: wm8350: Remove unused variable

'irq' is not used in the function. Remove it.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent bb17bc78
...@@ -1341,21 +1341,18 @@ int wm8350_hp_jack_detect(struct snd_soc_codec *codec, enum wm8350_jack which, ...@@ -1341,21 +1341,18 @@ int wm8350_hp_jack_detect(struct snd_soc_codec *codec, enum wm8350_jack which,
{ {
struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec);
struct wm8350 *wm8350 = priv->wm8350; struct wm8350 *wm8350 = priv->wm8350;
int irq;
int ena; int ena;
switch (which) { switch (which) {
case WM8350_JDL: case WM8350_JDL:
priv->hpl.jack = jack; priv->hpl.jack = jack;
priv->hpl.report = report; priv->hpl.report = report;
irq = WM8350_IRQ_CODEC_JCK_DET_L;
ena = WM8350_JDL_ENA; ena = WM8350_JDL_ENA;
break; break;
case WM8350_JDR: case WM8350_JDR:
priv->hpr.jack = jack; priv->hpr.jack = jack;
priv->hpr.report = report; priv->hpr.report = report;
irq = WM8350_IRQ_CODEC_JCK_DET_R;
ena = WM8350_JDR_ENA; ena = WM8350_JDR_ENA;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment