Skip to content

Commit de51711

Browse files
ethancedwards8bebarino
authored andcommitted
clk: ti: use kcalloc() instead of kzalloc()
Use 2-factor multiplication argument form kcalloc() instead of kzalloc(). Link: KSPP#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>
1 parent caa508a commit de51711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/ti/mux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static void of_mux_clk_setup(struct device_node *node)
180180
pr_err("mux-clock %pOFn must have parents\n", node);
181181
return;
182182
}
183-
parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL);
183+
parent_names = kcalloc(num_parents, sizeof(char *), GFP_KERNEL);
184184
if (!parent_names)
185185
goto cleanup;
186186

0 commit comments

Comments
 (0)