OSDN Git Service

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)
commiteaadb1caa966a91128297b754e90b7c92b350a00
treec8211f605746bcc1995439df07e8e230c3c0fc1b
parent0d5ea120abc020fada1f7cb019ec37f13162e7af
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: 3d9ff34622ba ("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