diff mbox

ASoC: core: fix return code in error message

Message ID 20180519060119.2612-1-daniel@zonque.org (mailing list archive)
State Accepted
Commit 637917b1efe6a16cc4151f6508e82fc473814fe3
Headers show

Commit Message

Daniel Mack May 19, 2018, 6:01 a.m. UTC
Log the correct error code in case the .open() call to a component fails.

Signed-off-by: Daniel Mack <daniel@zonque.org>
---
 sound/soc/soc-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 68d9dc930096..abc1dc7074f5 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -517,7 +517,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;
 		}
 	}