]> 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)
commitc9d30a9a8613a6daf78b8441e100155adc37f407
tree6e667f8849a847e52319261addf62f1497c5c1fc
parent1805f50ec578f312c84d6f43fb9998b5f1759ebc
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