]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Fix unused variable warning w/o CONFIG_LEDS_TRIGGER_AUDIO
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 May 2020 07:28:56 +0000 (09:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 May 2020 08:08:55 +0000 (10:08 +0200)
commit3210315be375167913826803cea65a21c2459427
treec3447db8c21eca4af3b7326ca249335b81cd55f6
parent7e396bdd305575f5178f407e3ca85a879f997a18
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 <sfr@canb.auug.org.au>
Fixes: 7e396bdd3055 ("ALSA: hda/realtek - Add LED class support for micmute LED")
Link: https://lore.kernel.org/r/20200501072857.13720-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c