Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lijun Ou and committed by
Jason Gunthorpe
d0a93556 82342e49

-2
-2
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
··· 3970 3970 const struct ib_global_route *grh = 3971 3971 rdma_ah_read_grh(&attr->ah_attr); 3972 3972 const struct ib_gid_attr *gid_attr = NULL; 3973 - u8 src_mac[ETH_ALEN]; 3974 3973 int is_roce_protocol; 3975 3974 u16 vlan = 0xffff; 3976 3975 u8 ib_port; ··· 3984 3985 if (is_roce_protocol) { 3985 3986 gid_attr = attr->ah_attr.grh.sgid_attr; 3986 3987 vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev); 3987 - memcpy(src_mac, gid_attr->ndev->dev_addr, ETH_ALEN); 3988 3988 } 3989 3989 3990 3990 if (is_vlan_dev(gid_attr->ndev)) {