Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc()

Switch to devm_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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210618151657.65305-5-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Marc Zyngier
43a1965f ff5fe886

+1 -4
+1 -4
drivers/irqchip/irq-ls-scfg-msi.c
··· 362 362 363 363 msi_data->irqs_num = MSI_IRQS_PER_MSIR * 364 364 (1 << msi_data->cfg->ibs_shift); 365 - msi_data->used = devm_kcalloc(&pdev->dev, 366 - BITS_TO_LONGS(msi_data->irqs_num), 367 - sizeof(*msi_data->used), 368 - GFP_KERNEL); 365 + msi_data->used = devm_bitmap_zalloc(&pdev->dev, msi_data->irqs_num, GFP_KERNEL); 369 366 if (!msi_data->used) 370 367 return -ENOMEM; 371 368 /*