RDMA/rxe: remove the unnecessary variable
Subsystems (2)
PATCH 1/1 RDMA/rxe: remove the unnecessary variable
From: Zhu Yanjun <[email protected]>
In the struct rxe_qp, the variable send_pkts is never used. So remove it.
Signed-off-by Zhu Yanjun <[email protected]>
--- drivers/infiniband/sw/rxe/rxe_qp.c | 2 -- drivers/infiniband/sw/rxe/rxe_verbs.h | 1 - 2 files changed, 3 deletions(-)
drivers/infiniband/sw/rxe/rxe_qp.c +0 -2
@@ -190,8 +190,6 @@ static void rxe_qp_init_misc(struct rxe_dev *rxe, struct rxe_qp *qp,INIT_LIST_HEAD (&qp->grp_list); -skb_queue_head_init (&qp->send_pkts); -spin_lock_init (&qp->grp_lock);spin_lock_init (&qp->state_lock);
drivers/infiniband/sw/rxe/rxe_verbs.h +0 -1
@@ -240,7 +240,6 @@ struct rxe_qp {struct sk_buff_head req_pkts;struct sk_buff_head resp_pkts; -struct sk_buff_head send_pkts;struct rxe_req_info req;struct rxe_comp_info comp;
Signature · 1 line
2.27.0
Quoted 10 lines · Zhu Yanjun
From: Zhu Yanjun <[email protected]>
In the struct
rxe_qp, the variablesend_pktsis never used. So remove it.Signed-off-by Zhu Yanjun <[email protected]>--- drivers/infiniband/sw/rxe/rxe_qp.c | 2 -- drivers/infiniband/sw/rxe/rxe_verbs.h | 1 - 2 files changed, 3 deletions(-)
Applied to for-next, thanks
Jason