]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl: fsl_easrc: Fix uninitialized variable st2_mem_alloc
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Mar 2021 09:18:35 +0000 (09:18 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:13:22 +0000 (13:13 +0000)
commit4140b7e7096e995f72ef6f01f9e0f822f2cb85e2
treee671b0cf336c641da4a2002477ec853cf621585f
parentcd1276d862c843a44b54e72d97f7134a67538435
ASoC: fsl: fsl_easrc: Fix uninitialized variable st2_mem_alloc

A previous cleanup commit removed the ininitialization of st2_mem_alloc.
Fix this by restoring the original behaviour by initializing it to zero.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: e80382fe721f ("ASoC: fsl: fsl_easrc: remove useless assignments")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210303091835.5024-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_easrc.c