Commit 7ed5f245 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jakub Kicinski

qed: Use bitmap_empty()

Use bitmap_empty() instead of hand-writing it.

It is less verbose and it improves the semantic.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/78713a72414b99f673c3a9ec0519bb41c080935a.1657053343.git.christophe.jaillet@wanadoo.frSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 291dbea1
...@@ -106,7 +106,7 @@ int qed_bmap_test_id(struct qed_hwfn *p_hwfn, ...@@ -106,7 +106,7 @@ int qed_bmap_test_id(struct qed_hwfn *p_hwfn,
static bool qed_bmap_is_empty(struct qed_bmap *bmap) static bool qed_bmap_is_empty(struct qed_bmap *bmap)
{ {
return bmap->max_count == find_first_bit(bmap->bitmap, bmap->max_count); return bitmap_empty(bmap->bitmap, bmap->max_count);
} }
static u32 qed_rdma_get_sb_id(void *p_hwfn, u32 rel_sb_id) static u32 qed_rdma_get_sb_id(void *p_hwfn, u32 rel_sb_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment