summaryrefslogtreecommitdiff
path: root/drivers/infiniband/sw/rxe/rxe_pool.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-10-24 18:43:56 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-10-28 08:58:27 -0300
commite30bb300a401a65b985c6af1f799080c80e1b950 (patch)
treee113ae168afa4bc7cf07e322f1b3f056cf9f2797 /drivers/infiniband/sw/rxe/rxe_pool.h
parent69d1ed59999c1e9c823f78befd3fb8a22bdbff48 (diff)
RDMA/rxe: Use 'bitmap_zalloc()' when applicable
'index.table' is a bitmap. So use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in allocator arguments. Using 'bitmap_zalloc()' also allows the removal of a now useless 'bitmap_zero()'. Also change the corresponding 'kfree()' into 'bitmap_free()' to keep consistency. Link: https://lore.kernel.org/r/4a3e11d45865678d570333d1962820eb13168848.1635093628.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_pool.h')
0 files changed, 0 insertions, 0 deletions