OSDN Git Service

RDMA/hns: Optimize hns_roce_v2_set_mac()
authorLijun Ou <oulijun@huawei.com>
Wed, 15 Apr 2020 08:14:31 +0000 (16:14 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 24 Apr 2020 13:19:10 +0000 (10:19 -0300)
commit375898e83d26d6da7414f129ed417ad7cef2728f
tree5970f0a880f9ed9a30247c9abebd82025cb60924
parent9976ea27b526365c4a9a6d3336a8b06f839ec26d
RDMA/hns: Optimize hns_roce_v2_set_mac()

Removes the unnecessary memset opertaion and adjust style of some lines in
hns_roce_v2_set_mac().

Link: https://lore.kernel.org/r/1586938475-37049-3-git-send-email-liweihang@huawei.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c