Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: ti: j721e-evm: Use devm_kcalloc() instead of devm_kzalloc()

Use 2-factor multiplication argument form devm_kcalloc() instead
of devm_kzalloc().

Link: https://github.com/KSPP/linux/issues/162
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Erick Archer <erick.archer@gmx.com>
Link: https://msgid.link/r/20240109181101.3806-1-erick.archer@gmx.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Erick Archer and committed by
Mark Brown
be69eae9 9423d7b9

+2 -2
+2 -2
sound/soc/ti/j721e-evm.c
··· 649 649 * Link 2: McASP10 <- pcm3168a_1 ADC 650 650 */ 651 651 comp_count = 6; 652 - compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent), 652 + compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent), 653 653 GFP_KERNEL); 654 654 if (!compnent) { 655 655 ret = -ENOMEM; ··· 763 763 * \ pcm3168a_b ADC 764 764 */ 765 765 comp_count = 8; 766 - compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent), 766 + compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent), 767 767 GFP_KERNEL); 768 768 if (!compnent) { 769 769 ret = -ENOMEM;