ALSA: hda/realtek - Fix unused variable warning w/o CONFIG_LEDS_TRIGGER_AUDIO
PATCH 1/1 ALSA: hda/realtek - Fix unused variable warning w/o CONFIG_LEDS_TRIGGER_AUDIO
Cover with a proper ifdef around the variable declaration for fixing
the following compilation warning without CONFIG_LEDS_TRIGGER_AUDIO:
sound/pci/hda/patch_realtek.c: In function 'alc_fixup_hp_gpio_led':
sound/pci/hda/patch_realtek.c:4134:6: warning: unused variable 'err' [-Wunused-variable]
Reported-by Stephen Rothwell <[email protected]>
Fixes 87dc36482cab ("ALSA: hda/realtek - Add LED class support for micmute LED")
Signed-off-by Takashi Iwai <[email protected]>
--- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/hda/patch_realtek.c +2 -0
@@ -4131,7 +4131,9 @@ static void alc_fixup_hp_gpio_led(struct hda_codec *codec, unsigned int micmute_mask) {struct alc_spec *spec = codec->spec; +#if IS_REACHABLE (CONFIG_LEDS_TRIGGER_AUDIO )int err; +#endif alc_fixup_gpio (codec, action, mute_mask | micmute_mask);
Signature · 1 line
2.16.4