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)
commit99a6993a6933acbf791d1c7bb789e0ebe5bd7127
tree6e667f8849a847e52319261addf62f1497c5c1fc
parente63cd65f435c77eb2bc0c4f6691be350cd749dce
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