|
@@ -2184,10 +2184,9 @@ static int __devinit snd_echo_probe(struct pci_dev *pci,
|
|
goto ctl_error;
|
|
goto ctl_error;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- if ((err = snd_card_register(card)) < 0) {
|
|
|
|
- snd_card_free(card);
|
|
|
|
|
|
+ err = snd_card_register(card);
|
|
|
|
+ if (err < 0)
|
|
goto ctl_error;
|
|
goto ctl_error;
|
|
- }
|
|
|
|
snd_printk(KERN_INFO "Card registered: %s\n", card->longname);
|
|
snd_printk(KERN_INFO "Card registered: %s\n", card->longname);
|
|
|
|
|
|
pci_set_drvdata(pci, chip);
|
|
pci_set_drvdata(pci, chip);
|