mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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>
This commit is contained in:
parent
caa508a38e
commit
de517118c5
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user