]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb852c36d38afdd36a370e5a66c18d030fee78147
tree405c101c779cb7679e2ddc6d18ff010691150803
parent3940d9fba376673247d266a38582102cbb8a886b
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