]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/bnxt_re: Simplify bnxt_re_init_depth() callers and implementation
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 18 Mar 2026 10:08:50 +0000 (12:08 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Mar 2026 17:47:44 +0000 (13:47 -0400)
commit2b2f078236a4451f495482d49194f1fda0970776
treeeb1c064579e58e66d5f33077c2f13ce47fbcc81b
parentb247ed6f60bdc61616b0243024e118b0659ce78f
RDMA/bnxt_re: Simplify bnxt_re_init_depth() callers and implementation

All callers of bnxt_re_init_depth() compute the minimum between its return
value and another internal variable, often mixing variable types in the
process. Clean this up by making the logic simpler and more readable.

Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.h