提交 0c698257 编写于 作者: F Fuyun Liang 提交者: David S. Miller

net: hns3: Change return value in hnae3_register_client

A client includes many client instance. Just like ae_algo, Initializing
client instance failed does not represent registering client failed.
The action of registering client just is adding client to the client
list and the result always is true. This patch changes the return
value of hnae3_register_client form a variable value to a fixed value,
makes the function always return ok.
Signed-off-by: NFuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 854cf33a
...@@ -98,7 +98,7 @@ int hnae3_register_client(struct hnae3_client *client) ...@@ -98,7 +98,7 @@ int hnae3_register_client(struct hnae3_client *client)
exit: exit:
mutex_unlock(&hnae3_common_lock); mutex_unlock(&hnae3_common_lock);
return ret; return 0;
} }
EXPORT_SYMBOL(hnae3_register_client); EXPORT_SYMBOL(hnae3_register_client);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册