Skip to contentSkip to conversation

ALSA: hda/realtek - Fix unused variable warning

PATCH New Takashi Iwai 1 participant 1 message Aug 12, 2020 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/realtek - Fix unused variable warning

The previous fix forgot to remove the unused variable that triggers a
compile warning now:
sound/pci/hda/patch_realtek.c: In function 'alc285_fixup_hp_gpio_led':
sound/pci/hda/patch_realtek.c:4163:19: warning: unused variable 'spec' [-Wunused-variable]

Fix it.

Fixes 404690649e6a ("ALSA: hda - reverse the setting value in the micmute_led_set")
---
 sound/pci/hda/patch_realtek.c | 2 --
 1 file changed, 2 deletions(-)
sound/pci/hda/patch_realtek.c +0 -2
index 073029aeaf3c..7f9d35273734 100644
@@ -4160,8 +4160,6 @@ static void alc269_fixup_hp_gpio_led(struct hda_codec *codec,
 static void alc285_fixup_hp_gpio_led(struct hda_codec *codec,
 				const struct hda_fixup *fix, int action)
 {
-	struct alc_spec *spec = codec->spec;
-
 	alc_fixup_hp_gpio_led(codec, action, 0x04, 0x01);
 }
 
Signature · 1 line
2.16.4