clk: ti: use kcalloc() instead of kzalloc()
Subsystems (2)
PATCH 1/1 clk: ti: use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc().
Signed-off-by Ethan Carter Edwards <[email protected]>
--- drivers/clk/ti/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ti/mux.c +1 -1
@@ -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;
Signature · 1 line
2.47.1
Quoting Ethan Carter Edwards (2024-12-29 21:28:58)
Quoted 7 lines
Use 2-factor multiplication argument form
kcalloc()instead ofkzalloc().Signed-off-by Ethan Carter Edwards <[email protected]>---
Applied to clk-next