]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codec2codec: fix missing return of error return code
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Jul 2019 12:33:27 +0000 (13:33 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jul 2019 15:58:58 +0000 (16:58 +0100)
commit217d01e2009c041033c18a03b5093b3ed0fc78d5
treeb8aa36d0475db11f95c0654aacd8b0fb7162fc9e
parent04b099e99396ef6cbefcb16b4543cea30244fc51
ASoC: codec2codec: fix missing return of error return code

Currently in function snd_soc_dai_link_event_pre_pmu the error return
code in variable err is being set but this is not actually being returned,
the function just returns zero even when there are failures. Fix this by
returning the error return code.

Addresses-Coverity: ("Unused value")
Fixes: 3abb355dbb6a ("ASoC: codec2codec: deal with params when necessary")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190726123327.10467-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c