]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: sst: Fix the return value of 'sst_send_byte_stream_mrfld()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 6 Jan 2018 20:18:24 +0000 (21:18 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jan 2018 15:57:55 +0000 (15:57 +0000)
commitdba9050174fbcd06ba50aff92bcf95a22d423c90
treec8211f605746bcc1995439df07e8e230c3c0fc1b
parentf785d3e9372af121d9838e376bd7e85eb92bff02
ASoC: Intel: sst: Fix the return value of 'sst_send_byte_stream_mrfld()'

In some error handling paths, an error code is assiegned to 'ret'.
However, the function always return 0.

Fix it and return the error code if such an error paths is taken.

Fixes: 31c5b0261bc5 ("ASoC: Intel: sst: add stream operations")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_stream.c