diff options
author | 2021-11-24 22:40:24 +0100 | |
---|---|---|
committer | 2021-11-25 13:29:06 -0400 | |
commit | d4fdc383c023efcdc88bcb9a30ea982e036758c1 (patch) | |
tree | 7b1501bd8507559c99853c5406a1e369d9705d0a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_mr.c' (diff) | |
download | linux-dev-d4fdc383c023efcdc88bcb9a30ea982e036758c1.tar.xz linux-dev-d4fdc383c023efcdc88bcb9a30ea982e036758c1.zip |
RDMA/cxgb4: Use bitmap_zalloc() when applicable
Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid
some open-coded arithmetic in allocator arguments.
Using the 'zalloc' version of the allocator also saves a now useless
'bitmap_zero()' call.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
While at it, remove an extra space in a statement just a few lines above.
Link: https://lore.kernel.org/r/e396c4aa16cd8945d43877570a8f6d926cea555a.1637789139.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 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions