[alsa-devel] [PATCH] ALSA: ak4117: remove redundant check on err being < 0

Takashi Iwai tiwai at suse.de
Tue Jul 12 12:27:26 CEST 2016


On Tue, 12 Jul 2016 12:22:40 +0200,
Colin King wrote:
> 
> From: Colin Ian King <colin.king at canonical.com>
> 
> snd_ak4117_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 at canonical.com>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list