Skip to contentSkip to conversation

ALSA: cmipci: Drop stale variable assignment

PATCH New Takashi Iwai 1 participant 1 message Nov 12, 2021 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: cmipci: Drop stale variable assignment

Since the recent code refactoring using devres, the variable cm in snd_cmipci_probe() is no longer referred.

Fixes 87e082ad84a7 ("ALSA: cmipci: Allocate resources with device-managed APIs")
---
 sound/pci/cmipci.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/pci/cmipci.c +1 -3
index ea20236f35db..9a678b5cf285 100644
@@ -3218,7 +3218,6 @@ static int snd_cmipci_probe(struct pci_dev *pci,
 {
 	static int dev;
 	struct snd_card *card;
-	struct cmipci *cm;
 	int err;
 
 	if (dev >= SNDRV_CARDS)
@@ -3229,10 +3228,9 @@ static int snd_cmipci_probe(struct pci_dev *pci,
 	}
 
 	err = snd_devm_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
-				sizeof(*cm), &card);
+				sizeof(struct cmipci), &card);
 	if (err < 0)
 		return err;
-	cm = card->private_data;
 	
 	switch (pci->device) {
 	case PCI_DEVICE_ID_CMEDIA_CM8738:
Signature · 1 line
2.31.1