ALSA: azt3328 - adjust error handling code to include debugging code
snd_azf3328_dbgcallenter is called at the very beginning of the function, so it could be useful to call snd_azf3328_dbgcallleave at all exit points. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
96b6359779
commit
a5a3973da8
1 changed files with 7 additions and 4 deletions
|
@ -2625,16 +2625,19 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
snd_azf3328_dbgcallenter();
|
snd_azf3328_dbgcallenter();
|
||||||
if (dev >= SNDRV_CARDS)
|
if (dev >= SNDRV_CARDS) {
|
||||||
return -ENODEV;
|
err = -ENODEV;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
if (!enable[dev]) {
|
if (!enable[dev]) {
|
||||||
dev++;
|
dev++;
|
||||||
return -ENOENT;
|
err = -ENOENT;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
|
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
goto out;
|
||||||
|
|
||||||
strcpy(card->driver, "AZF3328");
|
strcpy(card->driver, "AZF3328");
|
||||||
strcpy(card->shortname, "Aztech AZF3328 (PCI168)");
|
strcpy(card->shortname, "Aztech AZF3328 (PCI168)");
|
||||||
|
|
Loading…
Reference in a new issue