Browse Source

ALSA: ak4114: remove redundant check on err being < 0

snd_ak4114_create checks if the error return err is less than zero
or not.  This is a redundant check, err can only be < 0 to get to
the __fail label, in which case just return err and remove the
redundant check (since we never return -EIO).

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
imx_4.9.11_1.0.0_ga
Colin Ian King 4 years ago
committed by Takashi Iwai
parent
commit
5137d6da46
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sound/i2c/other/ak4114.c

+ 1
- 1
sound/i2c/other/ak4114.c View File

@ -121,7 +121,7 @@ int snd_ak4114_create(struct snd_card *card,
__fail:
snd_ak4114_free(chip);
return err < 0 ? err : -EIO;
return err;
}
EXPORT_SYMBOL(snd_ak4114_create);


Loading…
Cancel
Save