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

ASoC: twl4030: Remove unused variable

'status' 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 7171511e
...@@ -344,17 +344,16 @@ static void twl4030_init_chip(struct snd_soc_codec *codec) ...@@ -344,17 +344,16 @@ static void twl4030_init_chip(struct snd_soc_codec *codec)
static void twl4030_apll_enable(struct snd_soc_codec *codec, int enable) static void twl4030_apll_enable(struct snd_soc_codec *codec, int enable)
{ {
struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec); struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec);
int status = -1;
if (enable) { if (enable) {
twl4030->apll_enabled++; twl4030->apll_enabled++;
if (twl4030->apll_enabled == 1) if (twl4030->apll_enabled == 1)
status = twl4030_audio_enable_resource( twl4030_audio_enable_resource(
TWL4030_AUDIO_RES_APLL); TWL4030_AUDIO_RES_APLL);
} else { } else {
twl4030->apll_enabled--; twl4030->apll_enabled--;
if (!twl4030->apll_enabled) if (!twl4030->apll_enabled)
status = twl4030_audio_disable_resource( twl4030_audio_disable_resource(
TWL4030_AUDIO_RES_APLL); TWL4030_AUDIO_RES_APLL);
} }
} }
......
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