diff mbox

[1/3] ASoC: twl4030: Remove unused variable

Message ID 1404188973-1857-1-git-send-email-sachin.kamat@samsung.com (mailing list archive)
State Accepted
Commit bb17bc78885b6b2e53d46041605a7ed08c5274c2
Headers show

Commit Message

Sachin Kamat July 1, 2014, 4:29 a.m. UTC
'status' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
 sound/soc/codecs/twl4030.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Mark Brown July 3, 2014, 6:46 p.m. UTC | #1
On Tue, Jul 01, 2014 at 09:59:31AM +0530, Sachin Kamat wrote:
> 'status' is not used in the function. Remove it.

Applied all, thanks.  Please remember to CC driver maintainers as well
as subsystem maintainers.
diff mbox

Patch

diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 955df35c5ab6..cf404505e7d1 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -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)
 {
 	struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec);
-	int status = -1;
 
 	if (enable) {
 		twl4030->apll_enabled++;
 		if (twl4030->apll_enabled == 1)
-			status = twl4030_audio_enable_resource(
+			twl4030_audio_enable_resource(
 							TWL4030_AUDIO_RES_APLL);
 	} else {
 		twl4030->apll_enabled--;
 		if (!twl4030->apll_enabled)
-			status = twl4030_audio_disable_resource(
+			twl4030_audio_disable_resource(
 							TWL4030_AUDIO_RES_APLL);
 	}
 }