diff options
| author | Christophe JAILLET <[email protected]> | 2021-11-24 22:40:24 +0100 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-11-25 13:29:06 -0400 |
| commit | d4fdc383c023efcdc88bcb9a30ea982e036758c1 (patch) | |
| tree | 7b1501bd8507559c99853c5406a1e369d9705d0a /tools/perf/scripts/python/sctop.py | |
| parent | 675e2694fc6c99effd6f07df296b1d806e49ec88 (diff) | |
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 <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions