summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-10-24 19:43:56 +0300
committerJason Gunthorpe <jgg@nvidia.com>2021-10-28 14:58:27 +0300
commite30bb300a401a65b985c6af1f799080c80e1b950 (patch)
treee113ae168afa4bc7cf07e322f1b3f056cf9f2797 /scripts/generate_rust_analyzer.py
parent69d1ed59999c1e9c823f78befd3fb8a22bdbff48 (diff)
downloadlinux-e30bb300a401a65b985c6af1f799080c80e1b950.tar.xz
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions