qed: rework qed_rdma_bmap_free()
authorYury Norov <yury.norov@gmail.com>
Sun, 23 Jan 2022 18:38:41 +0000 (10:38 -0800)
committerYury Norov <yury.norov@gmail.com>
Mon, 2 May 2022 13:30:39 +0000 (06:30 -0700)
commit64b87c1a1875803296a47b6b03f73dd2b292932f
tree53dbbfbe1af5fd4573b9ca3ac7dee17c72891cc6
parentc8f14e2b737f8d3136f1012e67af99239bb30850
qed: rework qed_rdma_bmap_free()

qed_rdma_bmap_free() is mostly an opencoded version of printk("%*pb").
Using %*pb format simplifies the code, and helps to avoid inefficient
usage of bitmap_weight().

While here, reorganize logic to avoid calculating bmap weight if check
is false.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
drivers/net/ethernet/qlogic/qed/qed_rdma.c