]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:02 +0000 (14:41 -0400)
commite57c1f76f2759a6b7ae8d665b4a758ef2e900e65
treefb7d72f6f67b74a6b876ddc256219368751d4db3
parenta4d090cc927301f529a3af4257115c5d6f53e8b8
net: hns3: Change return value in hnae3_register_client

BugLink: https://bugs.launchpad.net/bugs/1768670
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>
(cherry picked from commit 0c698257c7befa8d1ec1b8d767758c3d73a2686a linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hnae3.c