summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Carter Edwards <ethan@ethancedwards.com>2024-12-30 08:28:58 +0300
committerStephen Boyd <sboyd@kernel.org>2025-01-07 02:49:21 +0300
commitde517118c5d3482411fd88141093fa838bc0af77 (patch)
tree5f1a769776ed3d77b815b223dba81374b4ed36ca
parentcaa508a38ee570c9eaa2f4bea3929712a39815df (diff)
downloadlinux-de517118c5d3482411fd88141093fa838bc0af77.tar.xz
clk: ti: use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc(). Link: https://github.com/KSPP/linux/issues/162 Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com> Link: https://lore.kernel.org/r/xfjn4wqrhukvi45dkgkbulamq3242eijn7567vxwaxznh4ebdr@waat7u3l2mhi Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/ti/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c
index 216d85d6aac6..f684fc306ecc 100644
--- a/drivers/clk/ti/mux.c
+++ b/drivers/clk/ti/mux.c
@@ -180,7 +180,7 @@ static void of_mux_clk_setup(struct device_node *node)
pr_err("mux-clock %pOFn must have parents\n", node);
return;
}
- parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL);
+ parent_names = kcalloc(num_parents, sizeof(char *), GFP_KERNEL);
if (!parent_names)
goto cleanup;