diff options
author | Andy Shevchenko <[email protected]> | 2021-06-18 18:16:51 +0300 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2021-07-26 18:01:27 +0100 |
commit | 4cad4da0795e9c03973d5456945394aee75bdf0f (patch) | |
tree | cccfff0bd6ddd846384e29f7f0d08dd23d8ffa04 | |
parent | ff1176468d368232b684f75e82563369208bc371 (diff) |
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]
-rw-r--r-- | drivers/irqchip/irq-partition-percpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-partition-percpu.c b/drivers/irqchip/irq-partition-percpu.c index 89c23a1566dc..8e76d2913e6b 100644 --- a/drivers/irqchip/irq-partition-percpu.c +++ b/drivers/irqchip/irq-partition-percpu.c @@ -215,8 +215,7 @@ struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode, goto out; desc->domain = d; - desc->bitmap = kcalloc(BITS_TO_LONGS(nr_parts), sizeof(long), - GFP_KERNEL); + desc->bitmap = bitmap_zalloc(nr_parts, GFP_KERNEL); if (WARN_ON(!desc->bitmap)) goto out; |