[PATCH net-next v1] ethernet: ks8842: delete unnecessary goto label

Dejin Zheng
2020-04-25T11:56:25Z

the label of err_register is not necessary, so delete it to
simplify code.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
---
drivers/net/ethernet/micrel/ks8842.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c
index f3f6dfe3eddc..213ca33a9967 100644
--- a/drivers/net/ethernet/micrel/ks8842.c
+++ b/drivers/net/ethernet/micrel/ks8842.c
@@ -1204,7 +1204,7 @@ static int ks8842_probe(struct platform_device *pdev)
strcpy(netdev->name, "eth%d");
err = register_netdev(netdev);
if (err)
- goto err_register;
+ goto err_get_irq;

platform_set_drvdata(pdev, netdev);

@@ -1213,7 +1213,6 @@ static int ks8842_probe(struct platform_device *pdev)

return 0;

-err_register:
err_get_irq:
iounmap(adapter->hw_addr);
err_ioremap:
--
2.25.0