Skip to content
Commit 5f8dac3f authored by Yury Norov's avatar Yury Norov
Browse files

qed: replace bitmap_weight with bitmap_empty in qed_roce_stop()



qed_roce_stop() calls bitmap_weight() to check if any bit of a given
bitmap is set. We can do it more efficiently with bitmap_empty() because
bitmap_empty() stops traversing the bitmap as soon as it finds first set
bit, while bitmap_weight() counts all bits unconditionally.

Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
Acked-by: default avatarPrabhakar Kushwaha <pkushwaha@marvell.com>
parent 2b330a6a
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