From: Guenter Roeck Date: Thu, 16 Apr 2015 13:49:50 +0000 (-0700) Subject: dsa: mv88e6xxx: Drop duplicate declaration of 'ret' variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31976cfdc7e2e8b0b23d731703e4f1e21ff79466;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index f64186a5f634..12f186cb30cc 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)