]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0c782c8e9e2991cc905a70ab7a61ab54dc5420a
treee7b746bda6f7b99e8b8b069a896482cea35c591a
parent0eee94ac189839d195e927c2ba5fc9e342a4f38e
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