Skip to contentSkip to conversation

ASoC: rt5645: remove unused variable

PATCH In review Sudip Mukherjee 2 participants 2 messages Jul 17, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: rt5645: remove unused variable

We were getting a build warning about unused variable. This variable was a leftover from:
a4e3c5fa955c ("ASoC: rt5645: Simplify rt5645_enable_push_button_irq")

---
 sound/soc/codecs/rt5645.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/rt5645.c +0 -1
index d24c979..ff091d6 100644
@@ -2763,7 +2763,6 @@ static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec,
 	bool enable)
 {
 	struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
-	struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec);
 
 	if (enable) {
 		snd_soc_dapm_force_enable_pin(dapm, "ADC L power");
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 3 lines · Sudip Mukherjee

We were getting a build warning about unused variable. This variable was a leftover from:
a4e3c5fa955c ("ASoC: rt5645: Simplify rt5645_enable_push_button_irq")

Yes, I already sent a patch to fix it:
https://patchwork.kernel.org/patch/6812261/ .

Thanks.

Quoted 24 lines
---
 sound/soc/codecs/rt5645.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/rt5645.c +0 -2
index d24c979..ff091d6 100644
@@ -2763,7 +2763,6 @@ static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec,
        bool enable)
 {
        struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
-       struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec);
 
        if (enable) {
                snd_soc_dapm_force_enable_pin(dapm, "ADC L power");
--

1.8.1.2

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel