RDMA/irdma: remove the unused variable local_qp
Subsystems (2)
PATCH 1/1 RDMA/irdma: remove the unused variable local_qp
From: Zhu Yanjun <[email protected]>
Since the member variable local_qp is not used, remove it.
Signed-off-by Zhu Yanjun <[email protected]>
--- drivers/infiniband/hw/irdma/type.h | 1 - drivers/infiniband/hw/irdma/verbs.c | 1 - 2 files changed, 2 deletions(-)
drivers/infiniband/hw/irdma/type.h +0 -1
@@ -852,7 +852,6 @@ struct irdma_roce_offload_info {u16 err_rq_idx;u32 qkey;u32 dest_qp; -u32 local_qp;u8 roce_tver;u8 ack_credits;u8 err_rq_idx_valid;
drivers/infiniband/hw/irdma/verbs.c +0 -1
@@ -1197,7 +1197,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr, av->attrs = attr->ah_attr;rdma_gid2ip ((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid);rdma_gid2ip ((struct sockaddr *)&av->dgid_addr, &attr->ah_attr.grh.dgid); - roce_info->local_qp = ibqp->qp_num;if (av->sgid_addr.saddr.sa_family ==AF_INET6 ) {__be32 *daddr = av->dgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32;
Signature · 1 line
2.27.0
Quoted 11 lines
Subject: [PATCH 1/1] RDMA/irdma: remove the unused variable
local_qpFrom: Zhu Yanjun <[email protected]>
Since the member variable
local_qpis not used, remove it.Signed-off-by Zhu Yanjun <[email protected]>--- drivers/infiniband/hw/irdma/type.h | 1 - drivers/infiniband/hw/irdma/verbs.c | 1 - 2 files changed, 2 deletions(-)
Acked-by Shiraz Saleem <[email protected]>
Quoted 10 lines · On Wed, Oct 27, 2021 at 01:54:57PM -0400, [email protected] wrote:
From: Zhu Yanjun <[email protected]>
Since the member variable
local_qpis not used, remove it.Signed-off-by Zhu Yanjun <[email protected]>Acked-by Shiraz Saleem <[email protected]>--- drivers/infiniband/hw/irdma/type.h | 1 - drivers/infiniband/hw/irdma/verbs.c | 1 - 2 files changed, 2 deletions(-)
Applied to for-next, thanks
Jason