diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-04-16 06:49:50 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-16 12:15:25 -0400 |
commit | 31976cfdc7e2e8b0b23d731703e4f1e21ff79466 (patch) | |
tree | 49ca6c9872f6fa98c6186bea21674b5e6d7f8b01 /drivers/net/dsa | |
parent | 5a950ad58d412d76d33f4f4399d69308d511c1a4 (diff) | |
download | op-kernel-dev-31976cfdc7e2e8b0b23d731703e4f1e21ff79466.zip op-kernel-dev-31976cfdc7e2e8b0b23d731703e4f1e21ff79466.tar.gz |
dsa: mv88e6xxx: Drop duplicate declaration of 'ret' variable
A duplicate declaration of 'ret' can result in hiding an error code.
Drop it.
Fixes: 17ee3e04ddbf ("net: dsa: Provide additional RMON statistics")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index f64186a..12f186c 100644 --- a/drivers/net/dsa/mv88e6xxx.c +++ b/drivers/net/dsa/mv88e6xxx.c @@ -602,8 +602,6 @@ static void _mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, u32 high = 0; if (s->reg >= 0x100) { - int ret; - ret = mv88e6xxx_reg_read(ds, REG_PORT(port), s->reg - 0x100); if (ret < 0) |