]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_asrc_dma: fully initialize structs
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 23 Sep 2022 10:15:47 +0000 (18:15 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 23 Sep 2022 16:54:14 +0000 (17:54 +0100)
commit30a2637ac39b12496a27e8ab4b4d8fcc39c709c9
tree3d4913898b3a9e07212f23b20456b0cdd058384c
parent24707385c42d0447f732a38499c0c8a3c9e64584
ASoC: fsl_asrc_dma: fully initialize structs

The driver uses two statically ininitialized struct dma_slave_config,
but only one of them is initialized to zero. Initialize config_be to
zero as well to make sure that no fields are filled with random values.
Let the compiler do this instead of explicitly calling memset() which
makes it easier to read.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1663928147-10106-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_dma.c