ALSA: ak4114: remove redundant check on err being < 0
authorColin Ian King <colin.king@canonical.com>
Tue, 12 Jul 2016 10:26:29 +0000 (11:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Jul 2016 10:28:04 +0000 (12:28 +0200)
commit5137d6da462d26bb2cb0c7a6960888adb789fb3d
tree966613e159b498af8bc302c54f512840822e8c1a
parent3805e6a18d459d520fb921698e3e3e21d8a039db
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>
sound/i2c/other/ak4114.c