]> 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)
commit763158d4158d263e9a126b2ef33e5c3862d8fd7e
treec8211f605746bcc1995439df07e8e230c3c0fc1b
parent85b0bd678bbec5335c5daa627008bedc5baeb266
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: 7d797e5c27dd ("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