From: Sudip Mukherjee Date: Fri, 8 Jan 2016 11:28:15 +0000 (+0530) Subject: bfin_mac: fix error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdffd2e8c7b361a831dc023c22bb8f4685c241ac;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bfin_mac: fix error path While building blackfin defconfig we were getting a build warning: warning: label 'out_err_irq_alloc' defined but not used. Commit e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") removed the label out_err_mdiobus_register but then mistakenly jumped to out_err_alloc. But it was actually supposed to jump to out_err_irq_alloc. Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") Cc: Andrew Lunn Signed-off-by: Sudip Mukherjee Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c index 6f3432ae6703..5ddfd0ed61d4 100644 --- a/drivers/net/ethernet/adi/bfin_mac.c +++ b/drivers/net/ethernet/adi/bfin_mac.c @@ -1857,7 +1857,7 @@ static int bfin_mii_bus_probe(struct platform_device *pdev) rc = mdiobus_register(miibus); if (rc) { dev_err(&pdev->dev, "Cannot register MDIO bus!\n"); - goto out_err_alloc; + goto out_err_irq_alloc; } platform_set_drvdata(pdev, miibus);