Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262942
b: refs/heads/master
c: a5a3973
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Takashi Iwai committed Aug 10, 2011
1 parent cdace15 commit 7588078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96b635977984a88ecdb9cc76b8a54db7297f36e0
refs/heads/master: a5a3973da8b52944bc5909852714e55771c31ce7
11 changes: 7 additions & 4 deletions trunk/sound/pci/azt3328.c
Original file line number Diff line number Diff line change
Expand Up @@ -2625,16 +2625,19 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
int err;

snd_azf3328_dbgcallenter();
if (dev >= SNDRV_CARDS)
return -ENODEV;
if (dev >= SNDRV_CARDS) {
err = -ENODEV;
goto out;
}
if (!enable[dev]) {
dev++;
return -ENOENT;
err = -ENOENT;
goto out;
}

err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
if (err < 0)
return err;
goto out;

strcpy(card->driver, "AZF3328");
strcpy(card->shortname, "Aztech AZF3328 (PCI168)");
Expand Down

0 comments on commit 7588078

Please sign in to comment.