RDMA/hns: Modify hns_roce_hw_v2_get_cfg to simplify the code
authorLang Cheng <chenglang@huawei.com>
Tue, 5 Nov 2019 11:08:00 +0000 (19:08 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Nov 2019 20:37:54 +0000 (16:37 -0400)
commit301cc7eb2cd9b0292658b9bfd45e5226cd1fef27
tree3cd19daf477a80fd29696f8f09518641fc1b7c77
parent880f133c6026bee250220b773f556cc27bb62457
RDMA/hns: Modify hns_roce_hw_v2_get_cfg to simplify the code

Merge base configuration of hr_dev into hns_roce_hw_v2_get_cfg(). In
addition, there is no need to return 0 at last, so we change return type
of it to void.

Link: https://lore.kernel.org/r/1572952082-6681-8-git-send-email-liweihang@hisilicon.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c