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>
This commit is contained in:
parent
fc9d19e18a
commit
dd566d586f
@ -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,
|
struct bnxt_re_srq *srq = container_of(handle, struct bnxt_re_srq,
|
||||||
qplib_srq);
|
qplib_srq);
|
||||||
struct ib_event ib_event;
|
struct ib_event ib_event;
|
||||||
int rc = 0;
|
|
||||||
|
|
||||||
ib_event.device = &srq->rdev->ibdev;
|
ib_event.device = &srq->rdev->ibdev;
|
||||||
ib_event.element.srq = &srq->ib_srq;
|
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.event_handler)(&ib_event,
|
||||||
srq->ib_srq.srq_context);
|
srq->ib_srq.srq_context);
|
||||||
}
|
}
|
||||||
return rc;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq,
|
static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user