Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Yury Norov <[email protected]> Acked-by: Prabhakar Kushwaha <[email protected]>
- Loading branch information