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:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/drivers/mpu401/mpu401.c

    r679 r703  
    117117        if (err < 0)
    118118                return err;
    119         if ((err = snd_card_register(card)) < 0) {
     119        err = snd_card_register(card);
     120        if (err < 0) {
    120121                snd_card_free(card);
    121122                return err;
     
    195196                if (err < 0)
    196197                        return err;
    197                 if ((err = snd_card_register(card)) < 0) {
     198                err = snd_card_register(card);
     199                if (err < 0) {
    198200                        snd_card_free(card);
    199201                        return err;
     
    240242        int i, err;
    241243
    242         if ((err = platform_driver_register(&snd_mpu401_driver)) < 0)
     244        err = platform_driver_register(&snd_mpu401_driver);
     245        if (err < 0)
    243246                return err;
    244247
  • GPL/trunk/alsa-kernel/drivers/mpu401/mpu401_uart.c

    r679 r703  
    283283
    284284        mpu = substream->rmidi->private_data;
    285         if (mpu->open_input && (err = mpu->open_input(mpu)) < 0)
    286                 return err;
     285        if (mpu->open_input) {
     286                err = mpu->open_input(mpu);
     287                if (err < 0)
     288                        return err;
     289        }
    287290        if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) {
    288291                if (snd_mpu401_do_reset(mpu) < 0)
     
    305308
    306309        mpu = substream->rmidi->private_data;
    307         if (mpu->open_output && (err = mpu->open_output(mpu)) < 0)
    308                 return err;
     310        if (mpu->open_output) {
     311                err = mpu->open_output(mpu);
     312                if (err < 0)
     313                        return err;
     314        }
    309315        if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) {
    310316                if (snd_mpu401_do_reset(mpu) < 0)
     
    536542        in_enable = (info_flags & MPU401_INFO_INPUT) ? 1 : 0;
    537543        out_enable = (info_flags & MPU401_INFO_OUTPUT) ? 1 : 0;
    538         if ((err = snd_rawmidi_new(card, "MPU-401U", device,
    539                                    out_enable, in_enable, &rmidi)) < 0)
     544        err = snd_rawmidi_new(card, "MPU-401U", device,
     545                              out_enable, in_enable, &rmidi);
     546        if (err < 0)
    540547                return err;
    541548        mpu = kzalloc(sizeof(*mpu), GFP_KERNEL);
Note: See TracChangeset for help on using the changeset viewer.