scsi: hpsa: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 20 Jul 2022 18:13:54 +0000 (20:13 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Sep 2022 04:45:12 +0000 (00:45 -0400)
commit5afdd990ce2ea178eb6cbd31b197cc3d12a675bf
tree3f22880b0510c146a10b385cdf3fcd280cb23369
parentde05e4843cce5f4b385f60acfa690eb94af923b8
scsi: hpsa: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them. It is less
verbose and it improves the semantic.

Link: https://lore.kernel.org/r/5f975ef43f8b7306e4ac4e2e8ce4bcd53f6092bb.1658340441.git.christophe.jaillet@wanadoo.fr
Tested-by: Don Brace <don.brace@microchip.com>
Acked-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c