Changeset 703 for GPL/trunk/alsa-kernel/pci/als300.c
- Timestamp:
- Sep 26, 2021, 6:18:40 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 696-702
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/als300.c
r695 r703 299 299 }; 300 300 301 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus)) < 0) 301 err = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus); 302 if (err < 0) 302 303 return err; 303 304 … … 622 623 *rchip = NULL; 623 624 624 if ((err = pci_enable_device(pci)) < 0) 625 err = pci_enable_device(pci); 626 if (err < 0) 625 627 return err; 626 628 … … 644 646 spin_lock_init(&chip->reg_lock); 645 647 646 if ((err = pci_request_regions(pci, "ALS300")) < 0) { 648 err = pci_request_regions(pci, "ALS300"); 649 if (err < 0) { 647 650 kfree(chip); 648 651 pci_disable_device(pci); … … 674 677 } 675 678 676 if ((err = snd_als300_new_pcm(chip)) < 0) { 679 err = snd_als300_new_pcm(chip); 680 if (err < 0) { 677 681 dev_err(card->dev, "Could not create PCM\n"); 678 682 snd_als300_free(chip); … … 680 684 } 681 685 682 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL,683 chip, &ops))< 0) {686 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); 687 if (err < 0) { 684 688 snd_als300_free(chip); 685 689 return err; … … 742 746 chip_type = pci_id->driver_data; 743 747 744 if ((err = snd_als300_create(card, pci, chip_type, &chip)) < 0) { 748 err = snd_als300_create(card, pci, chip_type, &chip); 749 if (err < 0) { 745 750 snd_card_free(card); 746 751 return err; … … 759 764 card->shortname, chip->port, chip->irq); 760 765 761 if ((err = snd_card_register(card)) < 0) { 766 err = snd_card_register(card); 767 if (err < 0) { 762 768 snd_card_free(card); 763 769 return err;
Note:
See TracChangeset
for help on using the changeset viewer.