Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31976cfd authored by Guenter Roeck's avatar Guenter Roeck Committed by David S. Miller
Browse files

dsa: mv88e6xxx: Drop duplicate declaration of 'ret' variable



A duplicate declaration of 'ret' can result in hiding an error code.
Drop it.

Fixes: 17ee3e04 ("net: dsa: Provide additional RMON statistics")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a950ad5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)