summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Archer <erick.archer@gmx.com>2024-01-06 18:16:35 +0100
committerMark Brown <broonie@kernel.org>2024-01-22 00:06:37 +0000
commit322ed3a10bf2dc85568aa9ed285aba448347080c (patch)
tree7ae1a4febd706083ec11d52c9cc4f264c5cf0073
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
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>
-rw-r--r--sound/soc/qcom/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c
index 756706d5b493..747041fa7866 100644
--- a/sound/soc/qcom/common.c
+++ b/sound/soc/qcom/common.c
@@ -73,7 +73,7 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
link = card->dai_link;
for_each_available_child_of_node(dev->of_node, np) {
- dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL);
+ dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL);
if (!dlc) {
ret = -ENOMEM;
goto err_put_np;