]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf71a3181db2100d7899fc079af5b4e2b0940e91d
tree5083c5a35349ee4561c51bf95f5d2604540f10d0
parent9cac2093b7cbbc43943a111fca402efc19183771
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