Skip to content

Commit b7fa624

Browse files
tititiou36bebarino
authored andcommitted
clk: bcm: rpi: Use correct order for the parameters of devm_kcalloc()
We should have 'n', then 'size', not the opposite. This is harmless because the 2 values are just multiplied, but having the correct order silence a (unpublished yet) smatch warning. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/49d726d11964ca0e3757bdb5659e3b3eaa1572b5.1653081643.git.christophe.jaillet@wanadoo.fr Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent b69b0ad commit b7fa624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/bcm/clk-raspberrypi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi,
345345
int ret;
346346

347347
clks = devm_kcalloc(rpi->dev,
348-
sizeof(*clks), RPI_FIRMWARE_NUM_CLK_ID,
348+
RPI_FIRMWARE_NUM_CLK_ID, sizeof(*clks),
349349
GFP_KERNEL);
350350
if (!clks)
351351
return -ENOMEM;

0 commit comments

Comments
 (0)