diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-03-11 07:54:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 07:32:55 +0100 |
commit | 9b96a3e6dd4bf3b92df15798f088ee6b35928712 (patch) | |
tree | 21cb2906d5f7a570b746acd7ae5214a5a44aa036 /drivers/net/ethernet/ibm/emac | |
parent | net: Add missing annotation for *netlink_seq_start() (diff) | |
download | linux-9b96a3e6dd4bf3b92df15798f088ee6b35928712.tar.xz linux-9b96a3e6dd4bf3b92df15798f088ee6b35928712.zip |
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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/emac')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index b7fc17756c51..06248a7db7f2 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -872,7 +872,7 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg, { struct emac_regs __iomem *p = dev->emacp; u32 r = 0; - int n, err = -ETIMEDOUT; + int n; mutex_lock(&dev->mdio_lock); @@ -919,7 +919,6 @@ static void __emac_mdio_write(struct emac_instance *dev, u8 id, u8 reg, goto bail; } } - err = 0; bail: if (emac_has_feature(dev, EMAC_FTR_HAS_RGMII)) rgmii_put_mdio(dev->rgmii_dev, dev->rgmii_port); |