Skip to contentSkip to conversation

ALSA: hda: Fix unused variable warning

PATCH New Takashi Iwai 1 participant 1 message Nov 4, 2024 Sound

lore
Share & tools
lore
#0 lore raw

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

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")
---
 sound/pci/hda/hda_intel.c | 2 --
 1 file changed, 2 deletions(-)
sound/pci/hda/hda_intel.c +0 -2
index fc329b6a70f5..6e271777feb9 100644
@@ -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);
Signature · 1 line
2.43.0