Commit 9b96a3e6 authored by Chen Zhou's avatar Chen Zhou Committed by David S. Miller

net: ibm: remove set but not used variables 'err'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/ibm/emac/core.c: In function __emac_mdio_write:
drivers/net/ethernet/ibm/emac/core.c:875:9: warning:
	variable err set but not used [-Wunused-but-set-variable]
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64fbca01
...@@ -872,7 +872,7 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg, ...@@ -872,7 +872,7 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg,
{ {
struct emac_regs __iomem *p = dev->emacp; struct emac_regs __iomem *p = dev->emacp;
u32 r = 0; u32 r = 0;
int n, err = -ETIMEDOUT; int n;
mutex_lock(&dev->mdio_lock); mutex_lock(&dev->mdio_lock);
...@@ -919,7 +919,6 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg, ...@@ -919,7 +919,6 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg,
goto bail; goto bail;
} }
} }
err = 0;
bail: bail:
if (emac_has_feature(dev, EMAC_FTR_HAS_RGMII)) if (emac_has_feature(dev, EMAC_FTR_HAS_RGMII))
rgmii_put_mdio(dev->rgmii_dev, dev->rgmii_port); rgmii_put_mdio(dev->rgmii_dev, dev->rgmii_port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment