forked from Minki/linux
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:
parent
9ff3036a60
commit
637917b1ef
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user