sfc/siena: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 19:34:08 +0000 (21:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jul 2022 02:54:32 +0000 (19:54 -0700)
commit820aceb53c7558386e8028ca56144b25fe20b010
tree405c101c779cb7679e2ddc6d18ff010691150803
parent6ca4b3932114def81fc35b2580fa0378a7ed6f09
sfc/siena: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/717ba530215f4d7ce9fedcc73d98dba1f70d7f71.1657049636.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/siena/farch.c