]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: cleanup of return values in hclge_init_client_instance()
authorJian Shen <shenjian15@huawei.com>
Sat, 19 May 2018 15:53:17 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2018 22:53:59 +0000 (18:53 -0400)
commitf2dc22d71b20b32355730143bc4003ae001eda1b
tree6e667f8849a847e52319261addf62f1497c5c1fc
parent6741cd7737c785e1eedb0497664703664aa6cb3b
net: hns3: cleanup of return values in hclge_init_client_instance()

Removes the goto and directly returns in case of errors as part of the
cleanup.

Signed-off-by: Jian Shen <shenjian15@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/hns3pf/hclge_main.c