aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-11-25 20:53:22 +0100
committerJason Gunthorpe <jgg@nvidia.com>2021-11-29 14:33:55 -0400
commitf86dbc9fc5d83384eae7eda0de17f823e8c81ca0 (patch)
tree553dbd029ae92d18ab2edd5e52f743e390323fd2 /lib/test_bitmap.c
parentRDMA/mlx4: Use bitmap_alloc() when applicable (diff)
downloadlinux-dev-f86dbc9fc5d83384eae7eda0de17f823e8c81ca0.tar.xz
linux-dev-f86dbc9fc5d83384eae7eda0de17f823e8c81ca0.zip
IB/hfi1: Use bitmap_zalloc() when applicable
Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in allocator arguments. Also change the corresponding 'kfree()' into 'bitmap_free()' to keep consistency. Link: https://lore.kernel.org/r/d46c6bc1869b8869244fa71943d2cad4104b3668.1637869925.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 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions