net: hns3: modify hclgevf_init_client_instance()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 28 May 2019 09:02:58 +0000 (17:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 00:39:01 +0000 (17:39 -0700)
commit1db58f86975a1f978b71b727ed9951ec53698fc0
tree6df364d3d4ad3b0c0f7877671298ddcdcdada025
parent994e04f16e5a50ef14f4353f4bd68ad48a0bcb79
net: hns3: modify hclgevf_init_client_instance()

hclgevf_init_client_instance() is a little bloated and there is
some duplicated code. This patch adds some cleanup for it.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c