projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6613476
)
ASoC: qcom: Use devm_kcalloc() instead of devm_kzalloc()
author
Erick Archer
<erick.archer@gmx.com>
Sat, 6 Jan 2024 17:16:35 +0000
(18:16 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 22 Jan 2024 00:06:37 +0000
(
00:06
+0000)
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>
sound/soc/qcom/common.c
patch
|
blob
|
history
diff --git
a/sound/soc/qcom/common.c
b/sound/soc/qcom/common.c
index 756706d5b4930193cbe8558dbfbf5108b23eb9a8..747041fa7866579d8bf614537bbeab8665e60d3b 100644
(file)
--- 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_k
zalloc(dev, 2 *
sizeof(*dlc), GFP_KERNEL);
+ dlc = devm_k
calloc(dev, 2,
sizeof(*dlc), GFP_KERNEL);
if (!dlc) {
ret = -ENOMEM;
goto err_put_np;