RDMA/irdma: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 11 Jul 2022 19:21:39 +0000 (21:21 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 10:23:58 +0000 (13:23 +0300)
commit82319639cd6fe436be0bb6e9277ded13d14261c0
tree5083c5a35349ee4561c51bf95f5d2604540f10d0
parent46195de38abf196e5799bd02b3ae88faf084d161
RDMA/irdma: 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/1f671b1af5881723ee265a0a12809c92950e58aa.1657567269.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/hw.c