diff options
author | 2021-11-25 20:34:10 +0100 | |
---|---|---|
committer | 2021-11-29 14:33:55 -0400 | |
commit | 27c2f5029ae33a6f5b7da935f42fda907df0d00c (patch) | |
tree | f4ca66c0c69275f600d0295fb98f45a11fdffa25 /lib/test_bitmap.c | |
parent | RDMA/bnxt_re: Remove dynamic pkey table (diff) | |
download | linux-dev-27c2f5029ae33a6f5b7da935f42fda907df0d00c.tar.xz linux-dev-27c2f5029ae33a6f5b7da935f42fda907df0d00c.zip |
RDMA/ocrdma: 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/b157f9e1586fb4d1083cb4058d7ac81b10bb86d7.1637868728.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