]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: topology: Avoid open coded arithmetic in memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Mar 2022 06:22:26 +0000 (07:22 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Apr 2022 22:37:56 +0000 (23:37 +0100)
commit8c2c2eddcb0688bf78a6d6d05114631bd7ee91d6
treef4c5e3816753e8d9c3e15929bcbb3622152c870a
parent16debdb8733919f0569c0c50980a656c4c2a7899
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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/3bbf03cfd1966bc6fb6dd0939e039fc161078a61.1647757329.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c