net: hns3: split function hnae3_match_n_instantiate()
authorJian Shen <shenjian15@huawei.com>
Thu, 4 Apr 2019 08:17:59 +0000 (16:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:20:39 +0000 (10:20 -0700)
commitd223dfa40a8f3811a56b3682a9377d7ada73f507
tree36a3e01ca55beadb1cc3cc441e66f8fa705870bc
parent1eeb3367897a3f9f852e186695e28bb623b09f92
net: hns3: split function hnae3_match_n_instantiate()

The function hnae3_match_n_instantiate() was called both by
initializing or uninitializing client. For uninitializing, the
return value was never used.

To make it more clear, this patch splits it to two functions,
hnae3_init_client_instance() and hnae3_uninit_client_instance().

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