Skip to content
Snippets Groups Projects
Commit a8fe990f authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Oleksii Kutuzov
Browse files

UPSTREAM: ASoC: SOF: topology: Avoid open coded arithmetic in memory allocation


Use kcalloc() instead of kzalloc()+open coded multiplication.
This is safer and saves a few lines of code.

Change-Id: I17d19d720a83975f52682ab0860bc63a54015935
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/3bbf03cfd1966bc6fb6dd0939e039fc161078a61.1647757329.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d70859b5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment