Merge tag 'sound-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-microblaze.git] / sound / i2c / other / ak4114.c
index 2ce0a97..c0cffe2 100644 (file)
@@ -97,7 +97,8 @@ int snd_ak4114_create(struct snd_card *card,
        chip->rcs0 = reg_read(chip, AK4114_REG_RCS0) & ~(AK4114_QINT | AK4114_CINT);
        chip->rcs1 = reg_read(chip, AK4114_REG_RCS1);
 
-       if ((err = snd_device_new(card, SNDRV_DEV_CODEC, chip, &ops)) < 0)
+       err = snd_device_new(card, SNDRV_DEV_CODEC, chip, &ops);
+       if (err < 0)
                goto __fail;
 
        if (r_ak4114)