Skip to content

Commit

Permalink
dsa: mv88e6xxx: Drop duplicate declaration of 'ret' variable
Browse files Browse the repository at this point in the history
A duplicate declaration of 'ret' can result in hiding an error code.
Drop it.

Fixes: 17ee3e0 ("net: dsa: Provide additional RMON statistics")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Guenter Roeck authored and David S. Miller committed Apr 16, 2015
1 parent 5a950ad commit 31976cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/dsa/mv88e6xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 31976cf

Please sign in to comment.