diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-07-12 11:26:29 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-07-12 12:28:04 +0200 |
commit | 5137d6da462d26bb2cb0c7a6960888adb789fb3d (patch) | |
tree | 966613e159b498af8bc302c54f512840822e8c1a /sound/i2c | |
parent | 3805e6a18d459d520fb921698e3e3e21d8a039db (diff) | |
download | lwn-5137d6da462d26bb2cb0c7a6960888adb789fb3d.tar.gz lwn-5137d6da462d26bb2cb0c7a6960888adb789fb3d.zip |
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>
Diffstat (limited to 'sound/i2c')
-rw-r--r-- | sound/i2c/other/ak4114.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/other/ak4114.c b/sound/i2c/other/ak4114.c index 5a4cf3fab4ae..d53c9bb36281 100644 --- a/sound/i2c/other/ak4114.c +++ b/sound/i2c/other/ak4114.c @@ -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); |