RDMA/qib: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 8 Jul 2022 17:20:39 +0000 (19:20 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 08:57:15 +0000 (11:57 +0300)
commitb577ea54ac0e7823d04151cb7c3a2ae24fae76a3
tree1790c6741ac10ad468ed7b0fb23925e5e3d7368c
parent3a844596ed71b7c12ac602f6f6b7b0f17e4d6a90
RDMA/qib: 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/f7a8588447679e80a438b6188b0603c1a11ad877.1657300671.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/qib/qib_init.c