Home
last modified time | relevance | path

Searched hist:d4fdc383 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Did_table.cd4fdc383 Wed Nov 24 15:40:24 CST 2021 Christophe JAILLET <christophe.jaillet@wanadoo.fr> 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>