]> 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)
commitf889a5b60e0ce555b546e124ad2cdd6ed6364036
tree53dbbfbe1af5fd4573b9ca3ac7dee17c72891cc6
parent44b06f549bcb360d98229617473f87a0c3e8a041
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