From: Daniel Mack Date: Sat, 19 May 2018 06:01:19 +0000 (+0200) Subject: ASoC: core: fix return code in error message X-Git-Tag: v4.18-rc1~127^2^2~66 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=637917b1efe6a16cc4151f6508e82fc473814fe3;p=linux.git ASoC: core: fix return code in error message Log the correct error code in case the .open() call to a component fails. Signed-off-by: Daniel Mack Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 87c9af2158d0..2df4719a84db 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -498,7 +498,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) if (__ret < 0) { dev_err(component->dev, "ASoC: can't open component %s: %d\n", - component->name, ret); + component->name, __ret); ret = __ret; } }