Skip to content

Commit 4cad4da

Browse files
andy-shevMarc Zyngier
authored andcommitted
irqchip/partitions: Switch to bitmap_zalloc()
Switch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ff11764 commit 4cad4da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/irqchip/irq-partition-percpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode,
215215
goto out;
216216
desc->domain = d;
217217

218-
desc->bitmap = kcalloc(BITS_TO_LONGS(nr_parts), sizeof(long),
219-
GFP_KERNEL);
218+
desc->bitmap = bitmap_zalloc(nr_parts, GFP_KERNEL);
220219
if (WARN_ON(!desc->bitmap))
221220
goto out;
222221

0 commit comments

Comments
 (0)