[PATCH] ASoC: fsl_asrc_dma: fully initialize structs
Fabio Estevam
festevam at gmail.com
Tue Jun 14 13:27:26 CEST 2022
Hi Sascha,
On Tue, Jun 14, 2022 at 7:15 AM Sascha Hauer <s.hauer at pengutronix.de> wrote:
>
> 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 at pengutronix.de>
Reviewed-by: Fabio Estevam <festevam at gmail.com>
More information about the Alsa-devel
mailing list