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: qcom: 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
Signed-off-by: Erick Archer <erick.archer@gmx.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://msgid.link/r/20240106171635.19881-1-erick.archer@gmx.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Erick Archer and committed by
Mark Brown
322ed3a1 6613476e

+1 -1
+1 -1
sound/soc/qcom/common.c
··· 73 73 link = card->dai_link; 74 74 75 75 for_each_available_child_of_node(dev->of_node, np) { 76 - dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); 76 + dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL); 77 77 if (!dlc) { 78 78 ret = -ENOMEM; 79 79 goto err_put_np;