qed: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 20:36:16 +0000 (22:36 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jul 2022 02:55:13 +0000 (19:55 -0700)
commit291dbea16c711d31b6b3b26b8475116110a7b7b3
treefff3bd3e18ad6676e48d01926f60f0aea074ba52
parent76d3c114706f438d5d2593401574c457849bd90c
qed: 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/d61ec77ce0b92f7539c6a144106139f8d737ec29.1657053343.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_rdma.c