Ignore:
Timestamp:
Sep 26, 2021, 6:18:40 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ad1889.c

    r695 r703  
    853853        *rchip = NULL;
    854854
    855         if ((err = pci_enable_device(pci)) < 0)
     855        err = pci_enable_device(pci);
     856        if (err < 0)
    856857                return err;
    857858
     
    864865
    865866        /* allocate chip specific data with zero-filled memory */
    866         if ((chip = kzalloc(sizeof(*chip), GFP_KERNEL)) == NULL) {
     867        chip = kzalloc(sizeof(*chip), GFP_KERNEL);
     868        if (!chip) {
    867869                pci_disable_device(pci);
    868870                return -ENOMEM;
     
    875877
    876878        /* (1) PCI resource allocation */
    877         if ((err = pci_request_regions(pci, card->driver)) < 0)
     879        err = pci_request_regions(pci, card->driver);
     880        if (err < 0)
    878881                goto free_and_ret;
    879882
     
    901904
    902905        /* (2) initialization of the chip hardware */
    903         if ((err = snd_ad1889_init(chip)) < 0) {
     906        err = snd_ad1889_init(chip);
     907        if (err < 0) {
    904908                snd_ad1889_free(chip);
    905909                return err;
    906910        }
    907911
    908         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     912        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     913        if (err < 0) {
    909914                snd_ad1889_free(chip);
    910915                return err;
Note: See TracChangeset for help on using the changeset viewer.