diff options
author | Changcheng Deng <deng.changcheng@zte.com.cn> | 2021-11-09 11:32:27 +0000 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-11-16 13:54:24 -0400 |
commit | dd566d586fbadc36431c730d71856eb45443e40b (patch) | |
tree | c2316be5278e47b3c3c809f1a303a0b0f67b5ea1 /drivers/infiniband/hw/bnxt_re | |
parent | fc9d19e18aaac489e6ea86fd5bb59d50d151515b (diff) | |
download | linux-dd566d586fbadc36431c730d71856eb45443e40b.tar.gz linux-dd566d586fbadc36431c730d71856eb45443e40b.tar.bz2 linux-dd566d586fbadc36431c730d71856eb45443e40b.zip |
RDMA/bnxt_re: Remove unneeded variable
Fix the following coccicheck review:
./drivers/infiniband/hw/bnxt_re/main.c: 896: 5-7: Unneeded variable
Remove unneeded variable used to store return value.
Link: https://lore.kernel.org/r/20211109113227.132596-1-deng.changcheng@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Reviewed-by: Devesh Sharma <devesh.s.sharma@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re')
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index b44944fb9b24..3d6834d3d4fb 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -893,7 +893,6 @@ static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, struct bnxt_re_srq *srq = container_of(handle, struct bnxt_re_srq, qplib_srq); struct ib_event ib_event; - int rc = 0; ib_event.device = &srq->rdev->ibdev; ib_event.element.srq = &srq->ib_srq; @@ -907,7 +906,7 @@ static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, (*srq->ib_srq.event_handler)(&ib_event, srq->ib_srq.srq_context); } - return rc; + return 0; } static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, |