Skip to content

Commit 036ef0a

Browse files
KAGA-KOKOdledford
authored andcommitted
RDMA/bnxt_re: Remove an unused variable
This patch does not change any functionality. Signed-off-by: Bart Van Assche <[email protected]> Cc: Selvin Xavier <[email protected]> Cc: Devesh Sharma <[email protected]> Cc: Somnath Kotur <[email protected]> Cc: Sriharsha Basavapatna <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 8932ff8 commit 036ef0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,14 +1540,13 @@ int bnxt_re_post_srq_recv(struct ib_srq *ib_srq, struct ib_recv_wr *wr,
15401540
ib_srq);
15411541
struct bnxt_qplib_swqe wqe;
15421542
unsigned long flags;
1543-
int rc = 0, payload_sz = 0;
1543+
int rc = 0;
15441544

15451545
spin_lock_irqsave(&srq->lock, flags);
15461546
while (wr) {
15471547
/* Transcribe each ib_recv_wr to qplib_swqe */
15481548
wqe.num_sge = wr->num_sge;
1549-
payload_sz = bnxt_re_build_sgl(wr->sg_list, wqe.sg_list,
1550-
wr->num_sge);
1549+
bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, wr->num_sge);
15511550
wqe.wr_id = wr->wr_id;
15521551
wqe.type = BNXT_QPLIB_SWQE_TYPE_RECV;
15531552

0 commit comments

Comments
 (0)