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

    r695 r703  
    10501050                runtime->hw.formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE;
    10511051        }
    1052         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     1052        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     1053        if (err < 0)
    10531054                return err;
    10541055        runtime->private_data = dma;
     
    14261427                return -ENXIO;
    14271428
    1428         if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0)
     1429        err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus);
     1430        if (err < 0)
    14291431                return err;
    14301432        pbus->clock = clock;
     
    14421444                if (! chip->spdif_over_aclink)
    14431445                        ac97.scaps |= AC97_SCAP_NO_SPDIF;
    1444                 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
     1446                err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]);
     1447                if (err < 0) {
    14451448                        chip->ac97[i] = NULL; /* to be sure */
    14461449                        dev_dbg(chip->card->dev,
     
    15731576        int err;
    15741577
    1575         if ((err = pci_enable_device(pci)) < 0)
     1578        err = pci_enable_device(pci);
     1579        if (err < 0)
    15761580                return err;
    15771581
     
    15871591        chip->pci = pci;
    15881592        chip->irq = -1;
    1589         if ((err = pci_request_regions(pci, "ATI IXP AC97")) < 0) {
     1593        err = pci_request_regions(pci, "ATI IXP AC97");
     1594        if (err < 0) {
    15901595                pci_disable_device(pci);
    15911596                kfree(chip);
     
    16101615        pci_set_master(pci);
    16111616
    1612         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     1617        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     1618        if (err < 0) {
    16131619                snd_atiixp_free(chip);
    16141620                return err;
     
    16331639        strcpy(card->driver, spdif_aclink ? "ATIIXP" : "ATIIXP-SPDMA");
    16341640        strcpy(card->shortname, "ATI IXP");
    1635         if ((err = snd_atiixp_create(card, pci, &chip)) < 0)
     1641        err = snd_atiixp_create(card, pci, &chip);
     1642        if (err < 0)
    16361643                goto __error;
    16371644        card->private_data = chip;
    16381645
    1639         if ((err = snd_atiixp_aclink_reset(chip)) < 0)
     1646        err = snd_atiixp_aclink_reset(chip);
     1647        if (err < 0)
    16401648                goto __error;
    16411649
    16421650        chip->spdif_over_aclink = spdif_aclink;
    16431651
    1644         if ((err = snd_atiixp_mixer_new(chip, ac97_clock, ac97_quirk)) < 0)
     1652        err = snd_atiixp_mixer_new(chip, ac97_clock, ac97_quirk);
     1653        if (err < 0)
    16451654                goto __error;
    16461655
    1647         if ((err = snd_atiixp_pcm_new(chip)) < 0)
     1656        err = snd_atiixp_pcm_new(chip);
     1657        if (err < 0)
    16481658                goto __error;
    16491659       
     
    16621672                 chip->addr, chip->irq);
    16631673
    1664         if ((err = snd_card_register(card)) < 0)
     1674        err = snd_card_register(card);
     1675        if (err < 0)
    16651676                goto __error;
    16661677
Note: See TracChangeset for help on using the changeset viewer.