summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-01-23 21:38:40 +0300
committerYury Norov <yury.norov@gmail.com>2022-05-02 16:30:39 +0300
commit2b330a6a6c21a9b9f4ce71e5c0be494ab577423c (patch)
treec541bdc9f154949aa0f99639657e0969bccff623 /drivers/net/ethernet/qlogic
parentfe06a0c09b47ea58ba2b01c8941af16bd45c02df (diff)
downloadlinux-2b330a6a6c21a9b9f4ce71e5c0be494ab577423c.tar.xz
octeontx2-pf: replace bitmap_weight with bitmap_empty where appropriate
In some places, octeontx2 code calls bitmap_weight() to check if any bit of a given bitmap is set. It's better to use bitmap_empty() in that case 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 <yury.norov@gmail.com>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
0 files changed, 0 insertions, 0 deletions