Skip to contentSkip to conversation

RDMA/rxe: remove the unnecessary variable

PATCH Applied Zhu Yanjun 2 participants 2 messages Sep 14, 2021

Subsystems (2)
lore
Share & tools
lore

Zhu Yanjun

author
#0 lore raw

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.

---
 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
index 1ab6af7ddb25..fa97ce9eaea3 100644
@@ -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
index ac2a2148027f..1fd53fb3a4b3 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 10 lines · Zhu Yanjun

From: Zhu Yanjun <[email protected]>

In the struct rxe_qp, the variable send_pkts is never used. So remove it.

---
 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