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

    r695 r703  
    5858        ICH_REG_##name##_PIV    = base + 0x0a,  /* byte - prefetched index value */ \
    5959        ICH_REG_##name##_CR     = base + 0x0b,  /* byte - control register */ \
    60 };
     60}
    6161
    6262/* busmaster blocks */
     
    343343        } else {
    344344                res = iagetword(chip, reg + ac97->num * 0x80);
    345                 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) {
     345                tmp = igetdword(chip, ICHREG(GLOB_STA));
     346                if (tmp & ICH_RCS) {
    346347                        /* reset RCS and preserve other R/WC bits */
    347348                        iputdword(chip, ICHREG(GLOB_STA),
     
    801802        glob_sta = igetdword(chip, ICHREG(GLOB_STA));
    802803
    803         if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0)
     804        err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus);
     805        if (err < 0)
    804806                goto __err;
    805807        pbus->private_free = snd_intel8x0m_mixer_free_ac97_bus;
     
    810812        ac97.pci = chip->pci;
    811813        ac97.num = glob_sta & ICH_SCR ? 1 : 0;
    812         if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) {
     814        err = snd_ac97_mixer(pbus, &ac97, &x97);
     815        if (err < 0) {
    813816                dev_err(chip->card->dev,
    814817                        "Unable to initialize codec #%d\n", ac97.num);
     
    928931        int err;
    929932       
    930         if ((err = snd_intel8x0m_ich_chip_init(chip, probing)) < 0)
     933        err = snd_intel8x0m_ich_chip_init(chip, probing);
     934        if (err < 0)
    931935                return err;
    932936        iagetword(chip, 0);     /* clear semaphore flag */
     
    10761080        *r_intel8x0m = NULL;
    10771081
    1078         if ((err = pci_enable_device(pci)) < 0)
     1082        err = pci_enable_device(pci);
     1083        if (err < 0)
    10791084                return err;
    10801085
     
    10901095        chip->irq = -1;
    10911096
    1092         if ((err = pci_request_regions(pci, card->shortname)) < 0) {
     1097        err = pci_request_regions(pci, card->shortname);
     1098        if (err < 0) {
    10931099                kfree(chip);
    10941100                pci_disable_device(pci);
     
    11681174        pci_set_master(pci);
    11691175
    1170         if ((err = snd_intel8x0m_chip_init(chip, 1)) < 0) {
     1176        err = snd_intel8x0m_chip_init(chip, 1);
     1177        if (err < 0) {
    11711178                snd_intel8x0m_free(chip);
    11721179                return err;
     
    11821189        card->sync_irq = chip->irq;
    11831190
    1184         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     1191        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     1192        if (err < 0) {
    11851193                snd_intel8x0m_free(chip);
    11861194                return err;
     
    12391247        strcat(card->shortname," Modem");
    12401248
    1241         if ((err = snd_intel8x0m_create(card, pci, pci_id->driver_data, &chip)) < 0) {
     1249        err = snd_intel8x0m_create(card, pci, pci_id->driver_data, &chip);
     1250        if (err < 0) {
    12421251                snd_card_free(card);
    12431252                return err;
     
    12451254        card->private_data = chip;
    12461255
    1247         if ((err = snd_intel8x0m_mixer(chip, ac97_clock)) < 0) {
     1256        err = snd_intel8x0m_mixer(chip, ac97_clock);
     1257        if (err < 0) {
    12481258                snd_card_free(card);
    12491259                return err;
    12501260        }
    1251         if ((err = snd_intel8x0m_pcm(chip)) < 0) {
     1261        err = snd_intel8x0m_pcm(chip);
     1262        if (err < 0) {
    12521263                snd_card_free(card);
    12531264                return err;
     
    12591270                card->shortname, chip->irq);
    12601271
    1261         if ((err = snd_card_register(card)) < 0) {
     1272        err = snd_card_register(card);
     1273        if (err < 0) {
    12621274                snd_card_free(card);
    12631275                return err;
Note: See TracChangeset for help on using the changeset viewer.