Skip to content

Commit

Permalink
ALSA: ak4114: remove redundant check on err being < 0
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Colin Ian King authored and tiwai committed Jul 12, 2016
1 parent 3805e6a commit 5137d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/i2c/other/ak4114.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5137d6d

Please sign in to comment.