RDMA/core: Clean up a variable name in ib_create_srq_user()
Subsystems (2)
PATCH 1/1 RDMA/core: Clean up a variable name in ib_create_srq_user()
"&srq->pd->usecnt" and "&pd->usecnt" are different names for the same reference count. Use "&pd->usecnt" consistently for both the increment and decrement.
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/infiniband/core/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/verbs.c +1 -1
@@ -1038,7 +1038,7 @@ struct ib_srq *ib_create_srq_user(struct ib_pd *pd, ret = pd->device->ops.create_srq (srq, srq_init_attr, udata);if (ret) {rdma_restrack_put (&srq->res); -atomic_dec (&srq->pd->usecnt); +atomic_dec (&pd->usecnt);if (srq->srq_type ==IB_SRQT_XRC && srq->ext.xrc.xrcd)atomic_dec (&srq->ext.xrc.xrcd->usecnt);if (ib_srq_has_cq (srq->srq_type))
Signature · 1 line
2.35.1
Leon Romanovsky
AppliedQuoted 5 lines · Dan Carpenter
"
&srq->pd->usecnt" and "&pd->usecnt" are different names for the same reference count. Use "&pd->usecnt" consistently for both the increment and decrement.
Applied, thanks!
[1/1] RDMA/core: Clean up a variable name in ib_create_srq_user()
https://git.kernel.org/rdma/rdma/c/b300729b77b0b7
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>