Skip to content

Commit 5137d6d

Browse files
Colin Ian Kingtiwai
Colin Ian King
authored andcommitted
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3805e6a commit 5137d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/i2c/other/ak4114.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int snd_ak4114_create(struct snd_card *card,
121121

122122
__fail:
123123
snd_ak4114_free(chip);
124-
return err < 0 ? err : -EIO;
124+
return err;
125125
}
126126
EXPORT_SYMBOL(snd_ak4114_create);
127127

0 commit comments

Comments
 (0)