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_modem.c

    r695 r703  
    857857        runtime->hw = snd_atiixp_pcm_hw;
    858858        dma->ac97_pcm_type = pcm_type;
    859         if ((err = snd_pcm_hw_constraint_list(runtime, 0,
    860                                               SNDRV_PCM_HW_PARAM_RATE,
    861                                               &hw_constraints_rates)) < 0)
     859        err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
     860                                         &hw_constraints_rates);
     861        if (err < 0)
    862862                return err;
    863         if ((err = snd_pcm_hw_constraint_integer(runtime,
    864                                                  SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     863        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     864        if (err < 0)
    865865                return err;
    866866        runtime->private_data = dma;
     
    10591059                return -ENXIO;
    10601060
    1061         if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0)
     1061        err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus);
     1062        if (err < 0)
    10621063                return err;
    10631064        pbus->clock = clock;
     
    10731074                ac97.num = i;
    10741075                ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
    1075                 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
     1076                err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]);
     1077                if (err < 0) {
    10761078                        chip->ac97[i] = NULL; /* to be sure */
    10771079                        dev_dbg(chip->card->dev,
     
    11931195        int err;
    11941196
    1195         if ((err = pci_enable_device(pci)) < 0)
     1197        err = pci_enable_device(pci);
     1198        if (err < 0)
    11961199                return err;
    11971200
     
    12071210        chip->pci = pci;
    12081211        chip->irq = -1;
    1209         if ((err = pci_request_regions(pci, "ATI IXP MC97")) < 0) {
     1212        err = pci_request_regions(pci, "ATI IXP MC97");
     1213        if (err < 0) {
    12101214                kfree(chip);
    12111215                pci_disable_device(pci);
     
    12301234        pci_set_master(pci);
    12311235
    1232         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     1236        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     1237        if (err < 0) {
    12331238                snd_atiixp_free(chip);
    12341239                return err;
     
    12531258        strcpy(card->driver, "ATIIXP-MODEM");
    12541259        strcpy(card->shortname, "ATI IXP Modem");
    1255         if ((err = snd_atiixp_create(card, pci, &chip)) < 0)
     1260        err = snd_atiixp_create(card, pci, &chip);
     1261        if (err < 0)
    12561262                goto __error;
    12571263        card->private_data = chip;
    12581264
    1259         if ((err = snd_atiixp_aclink_reset(chip)) < 0)
     1265        err = snd_atiixp_aclink_reset(chip);
     1266        if (err < 0)
    12601267                goto __error;
    12611268
    1262         if ((err = snd_atiixp_mixer_new(chip, ac97_clock)) < 0)
     1269        err = snd_atiixp_mixer_new(chip, ac97_clock);
     1270        if (err < 0)
    12631271                goto __error;
    12641272
    1265         if ((err = snd_atiixp_pcm_new(chip)) < 0)
     1273        err = snd_atiixp_pcm_new(chip);
     1274        if (err < 0)
    12661275                goto __error;
    12671276       
     
    12731282                card->shortname, pci->revision, chip->addr, chip->irq);
    12741283
    1275         if ((err = snd_card_register(card)) < 0)
     1284        err = snd_card_register(card);
     1285        if (err < 0)
    12761286                goto __error;
    12771287
Note: See TracChangeset for help on using the changeset viewer.