]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: core: fix return code in error message
authorDaniel Mack <daniel@zonque.org>
Sat, 19 May 2018 06:01:19 +0000 (08:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 10:55:03 +0000 (11:55 +0100)
Log the correct error code in case the .open() call to a component fails.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c

index 87c9af2158d0db2be32ea9a97e59ae574704df2a..2df4719a84db0f37951a23a0fbeb4f1c557c43ab 100644 (file)
@@ -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;
                }
        }