ALSA: hda - fix unused Realtek function when PM is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 30 Apr 2022 19:33:18 +0000 (12:33 -0700)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 May 2022 09:10:52 +0000 (11:10 +0200)
commitc3d9ca93f1e3bd3d1adfc4479a12c82fed424c87
tree80a6fb62353b8d2b75525e7f56a496094114aa71
parentd7be213849232a2accb219d537edf056d29186b4
ALSA: hda - fix unused Realtek function when PM is not enabled

When CONFIG_PM is not enabled, alc_shutup() is not needed,
so move it inside the #ifdef CONFIG_PM guard.
Also drop some contiguous #endif / #ifdef CONFIG_PM for simplicity.

Fixes this build warning:
sound/pci/hda/patch_realtek.c:886:20: warning: unused function 'alc_shutup'

Fixes: 08c189f2c552 ("ALSA: hda - Use generic parser codes for Realtek driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220430193318.29024-1-rdunlap@infradead.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c