cnic: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 20:25:58 +0000 (22:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jul 2022 02:55:04 +0000 (19:55 -0700)
commit76d3c114706f438d5d2593401574c457849bd90c
treee7b746bda6f7b99e8b8b069a896482cea35c591a
parent45262522d0027269dbece119f1cb89e25f5de965
cnic: 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/521bd2a49be5d88e493bcfb63505d3df91a1c2d2.1657052743.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/cnic.c