diff options
author | Lijun Ou <oulijun@huawei.com> | 2019-02-23 07:01:28 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-25 20:11:30 -0400 |
commit | d0a935563bc0f447abed7799388fa3f13099cc0d (patch) | |
tree | f8f0ed8074f77d4620bb4c5aa9f0f14e19fbb65b | |
parent | 82342e493b7e53f5e0d0698a48190f05e84d6690 (diff) |
RDMA/hns: Delete unused variable in hns_roce_v2_modify_qp function
The src_mac array is not used in hns_roce_v2_modify_qp function.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 23ea16c6402c..14e89454e269 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c | |||
@@ -3970,7 +3970,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, | |||
3970 | const struct ib_global_route *grh = | 3970 | const struct ib_global_route *grh = |
3971 | rdma_ah_read_grh(&attr->ah_attr); | 3971 | rdma_ah_read_grh(&attr->ah_attr); |
3972 | const struct ib_gid_attr *gid_attr = NULL; | 3972 | const struct ib_gid_attr *gid_attr = NULL; |
3973 | u8 src_mac[ETH_ALEN]; | ||
3974 | int is_roce_protocol; | 3973 | int is_roce_protocol; |
3975 | u16 vlan = 0xffff; | 3974 | u16 vlan = 0xffff; |
3976 | u8 ib_port; | 3975 | u8 ib_port; |
@@ -3985,7 +3984,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, | |||
3985 | if (is_roce_protocol) { | 3984 | if (is_roce_protocol) { |
3986 | gid_attr = attr->ah_attr.grh.sgid_attr; | 3985 | gid_attr = attr->ah_attr.grh.sgid_attr; |
3987 | vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev); | 3986 | vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev); |
3988 | memcpy(src_mac, gid_attr->ndev->dev_addr, ETH_ALEN); | ||
3989 | } | 3987 | } |
3990 | 3988 | ||
3991 | if (is_vlan_dev(gid_attr->ndev)) { | 3989 | if (is_vlan_dev(gid_attr->ndev)) { |