diff options
Diffstat (limited to 'sound/pci/azt3328.c')
-rw-r--r-- | sound/pci/azt3328.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index e4d76a270c9f..579fc0dce128 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -2625,16 +2625,19 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2625 | int err; | 2625 | int err; |
2626 | 2626 | ||
2627 | snd_azf3328_dbgcallenter(); | 2627 | snd_azf3328_dbgcallenter(); |
2628 | if (dev >= SNDRV_CARDS) | 2628 | if (dev >= SNDRV_CARDS) { |
2629 | return -ENODEV; | 2629 | err = -ENODEV; |
2630 | goto out; | ||
2631 | } | ||
2630 | if (!enable[dev]) { | 2632 | if (!enable[dev]) { |
2631 | dev++; | 2633 | dev++; |
2632 | return -ENOENT; | 2634 | err = -ENOENT; |
2635 | goto out; | ||
2633 | } | 2636 | } |
2634 | 2637 | ||
2635 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); | 2638 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
2636 | if (err < 0) | 2639 | if (err < 0) |
2637 | return err; | 2640 | goto out; |
2638 | 2641 | ||
2639 | strcpy(card->driver, "AZF3328"); | 2642 | strcpy(card->driver, "AZF3328"); |
2640 | strcpy(card->shortname, "Aztech AZF3328 (PCI168)"); | 2643 | strcpy(card->shortname, "Aztech AZF3328 (PCI168)"); |