Commit d0a93556 authored by Lijun Ou's avatar Lijun Ou Committed by Jason Gunthorpe

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: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 82342e49
...@@ -3970,7 +3970,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, ...@@ -3970,7 +3970,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
const struct ib_global_route *grh = const struct ib_global_route *grh =
rdma_ah_read_grh(&attr->ah_attr); rdma_ah_read_grh(&attr->ah_attr);
const struct ib_gid_attr *gid_attr = NULL; const struct ib_gid_attr *gid_attr = NULL;
u8 src_mac[ETH_ALEN];
int is_roce_protocol; int is_roce_protocol;
u16 vlan = 0xffff; u16 vlan = 0xffff;
u8 ib_port; u8 ib_port;
...@@ -3985,7 +3984,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, ...@@ -3985,7 +3984,6 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
if (is_roce_protocol) { if (is_roce_protocol) {
gid_attr = attr->ah_attr.grh.sgid_attr; gid_attr = attr->ah_attr.grh.sgid_attr;
vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev); vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev);
memcpy(src_mac, gid_attr->ndev->dev_addr, ETH_ALEN);
} }
if (is_vlan_dev(gid_attr->ndev)) { if (is_vlan_dev(gid_attr->ndev)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment