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

    r695 r703  
    148148        };
    149149
    150         if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0)
     150        err = snd_ac97_bus(card, 0, &ops, NULL, &pbus);
     151        if (err < 0)
    151152                return err;
    152153
     
    160161        olpc_prequirks(card, &ac97);
    161162
    162         if ((err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97)) < 0) {
     163        err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97);
     164        if (err < 0) {
    163165                dev_err(card->dev, "mixer failed\n");
    164166                return err;
     
    271273
    272274        *rcs5535au = NULL;
    273         if ((err = pci_enable_device(pci)) < 0)
     275        err = pci_enable_device(pci);
     276        if (err < 0)
    274277                return err;
    275278
     
    291294        cs5535au->irq = -1;
    292295
    293         if ((err = pci_request_regions(pci, "CS5535 Audio")) < 0) {
     296        err = pci_request_regions(pci, "CS5535 Audio");
     297        if (err < 0) {
    294298                kfree(cs5535au);
    295299                goto pcifail;
     
    309313        pci_set_master(pci);
    310314
    311         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL,
    312                                   cs5535au, &ops)) < 0)
     315        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, cs5535au, &ops);
     316        if (err < 0)
    313317                goto sndfail;
    314318
     
    345349                return err;
    346350
    347         if ((err = snd_cs5535audio_create(card, pci, &cs5535au)) < 0)
     351        err = snd_cs5535audio_create(card, pci, &cs5535au);
     352        if (err < 0)
    348353                goto probefail_out;
    349354
    350355        card->private_data = cs5535au;
    351356
    352         if ((err = snd_cs5535audio_mixer(cs5535au)) < 0)
     357        err = snd_cs5535audio_mixer(cs5535au);
     358        if (err < 0)
    353359                goto probefail_out;
    354360
    355         if ((err = snd_cs5535audio_pcm(cs5535au)) < 0)
     361        err = snd_cs5535audio_pcm(cs5535au);
     362        if (err < 0)
    356363                goto probefail_out;
    357364
     
    363370                cs5535au->port, cs5535au->irq);
    364371
    365         if ((err = snd_card_register(card)) < 0)
     372        err = snd_card_register(card);
     373        if (err < 0)
    366374                goto probefail_out;
    367375
Note: See TracChangeset for help on using the changeset viewer.