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/als300.c

    r695 r703  
    299299        };
    300300
    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)
    302303                return err;
    303304
     
    622623        *rchip = NULL;
    623624
    624         if ((err = pci_enable_device(pci)) < 0)
     625        err = pci_enable_device(pci);
     626        if (err < 0)
    625627                return err;
    626628
     
    644646        spin_lock_init(&chip->reg_lock);
    645647
    646         if ((err = pci_request_regions(pci, "ALS300")) < 0) {
     648        err = pci_request_regions(pci, "ALS300");
     649        if (err < 0) {
    647650                kfree(chip);
    648651                pci_disable_device(pci);
     
    674677        }
    675678
    676         if ((err = snd_als300_new_pcm(chip)) < 0) {
     679        err = snd_als300_new_pcm(chip);
     680        if (err < 0) {
    677681                dev_err(card->dev, "Could not create PCM\n");
    678682                snd_als300_free(chip);
     
    680684        }
    681685
    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) {
    684688                snd_als300_free(chip);
    685689                return err;
     
    742746        chip_type = pci_id->driver_data;
    743747
    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) {
    745750                snd_card_free(card);
    746751                return err;
     
    759764                                card->shortname, chip->port, chip->irq);
    760765
    761         if ((err = snd_card_register(card)) < 0) {
     766        err = snd_card_register(card);
     767        if (err < 0) {
    762768                snd_card_free(card);
    763769                return err;
Note: See TracChangeset for help on using the changeset viewer.