]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bb9d90b8e1a3b8b954a86aabdb5a1c77c58ba11
treef5ce715a3676c957138b12f718bc20843f34bdb5
parent117c1e5e08738bee466be9454cb7a652849a97e0
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