net: hns3: remove an unnecessary 'goto' in hclge_init_ae_dev()
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 28 May 2020 13:48:08 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:39:03 +0000 (16:39 -0700)
commit2421ee24777e9f7effc4b6db29276eced7ca2114
tree98e4923550dce9c93347661e8d78f8bc818b6c81
parentf4b992b461b31910a0ef5acbad0af4906cbaaae0
net: hns3: remove an unnecessary 'goto' in hclge_init_ae_dev()

Remove the redundant 'goto' and return -ENOMEM directly, when
allocating memory for 'hdev' fails in hclge_init_ae_dev().

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c