]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ALSA: hda: Fix unused variable warning
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Nov 2024 19:06:53 +0000 (20:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Nov 2024 19:07:55 +0000 (20:07 +0100)
The previous code cleanup made a variable not really used, which now
leads to a compile warning.  Let's fix it.

Fixes: cac99f73f075 ("ALSA: hda: intel: Don't free interrupt when suspending")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411050247.3esQz7Am-lkp@intel.com/
Link: https://patch.msgid.link/20241104190654.32216-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index fc329b6a70f55c4b35c7098d9064e00e131b54fc..6e271777feb9c958e7d30a779577b8ee6b3f7a5c 100644 (file)
@@ -1039,13 +1039,11 @@ static int azx_suspend(struct device *dev)
 {
        struct snd_card *card = dev_get_drvdata(dev);
        struct azx *chip;
-       struct hdac_bus *bus;
 
        if (!azx_is_pm_ready(card))
                return 0;
 
        chip = card->private_data;
-       bus = azx_bus(chip);
        azx_shutdown_chip(chip);
 
        trace_azx_suspend(chip);