bnxt: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 20:22:59 +0000 (22:22 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jul 2022 02:54:52 +0000 (19:54 -0700)
commit45262522d0027269dbece119f1cb89e25f5de965
treea9427afd25cbba307aa99cd4b821834a8c95754f
parentee4c0c5d2593d5f694447f4053076cdc23e606c9
bnxt: 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>
Link: https://lore.kernel.org/r/d508f3adf7e2804f4d3793271b82b196a2ccb940.1657052562.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c