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 <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Daniel Mack 2018-05-19 08:01:19 +02:00 committed by Mark Brown
parent 9ff3036a60
commit 637917b1ef
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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;
}
}