net: hns3: modify hclge_init_client_instance()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 28 May 2019 09:02:57 +0000 (17:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 00:39:01 +0000 (17:39 -0700)
commit994e04f16e5a50ef14f4353f4bd68ad48a0bcb79
treef5ce715a3676c957138b12f718bc20843f34bdb5
parent25d1817c4e5020b850b8bc383401ceff3cbc6e31
net: hns3: modify hclge_init_client_instance()

hclge_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/hns3pf/hclge_main.c