]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b8415f62d798a055b5be9b097b677061cda6195
tree53dbbfbe1af5fd4573b9ca3ac7dee17c72891cc6
parent31f62bae6a4d22955b03097df84daca7d0cafcb4
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