RDMA/rxe: remove the unnecessary variable
authorZhu Yanjun <zyjzyj2000@gmail.com>
Wed, 15 Sep 2021 07:51:28 +0000 (03:51 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 14 Sep 2021 19:22:48 +0000 (16:22 -0300)
In the struct rxe_qp, the variable send_pkts is never used.  So remove it.

Link: https://lore.kernel.org/r/20210915075128.482919-1-yanjun.zhu@intel.com
Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_qp.c
drivers/infiniband/sw/rxe/rxe_verbs.h

index 1ab6af7ddb2549c7e28409169041ee40b9387526..fa97ce9eaea3027e89392c1f8dbb8d34ef67dd06 100644 (file)
@@ -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);
 
index ac2a2148027f47cd93afb1dae8c9694d9bf7e74f..1fd53fb3a4b33a379a7be113790d6cca1e2c9c10 100644 (file)
@@ -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;