]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita73877e3aa02bc159a08ccc2f26cc67ea99ca7ec
tree98e4923550dce9c93347661e8d78f8bc818b6c81
parent13c0da570807e373b591b1866258973f6b82694c
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