]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05fd28362eb038a6336f876832d17cd80adbe920
tree36a3e01ca55beadb1cc3cc441e66f8fa705870bc
parentd8d731f2bbaf28005e15e90e091a8e2340bda637
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