]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: fix the return value in dpcm_apply_symmetry()
authorJaroslav Kysela <perex@perex.cz>
Mon, 14 Jun 2021 07:17:46 +0000 (09:17 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 14 Jun 2021 13:59:17 +0000 (14:59 +0100)
commitb750cbd9b80e0348a0714d36413c961e925e414f
tree82441b37e40ff8907baafe5453d8790611ac23a2
parent0d3ae5c9baa8a5b7d490e97b74f48c4e59dad3b2
ASoC: soc-pcm: fix the return value in dpcm_apply_symmetry()

In case, where the loops are not executed for a reason, the uninitialized
variable 'err' is returned to the caller. Make code fully predictible
and assign zero in the declaration.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Cc: Mark Brown <broonie@kernel.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20210614071746.1787072-1-perex@perex.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c