]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Change return value in hnae3_register_client
authorFuyun Liang <liangfuyun1@huawei.com>
Tue, 15 May 2018 18:20:10 +0000 (19:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:33:08 +0000 (11:33 -0400)
commite78fb2170a2a3a597543b8d7bdb0fb1de571a5a8
tree7a017fe38994662d7fe40bd347d6dc8fef920c9d
parentdac8049b1673b937cb6716dc68259534712ea0ca
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: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.c