提交 31976cfd 编写于 作者: G Guenter Roeck 提交者: David S. Miller

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: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5a950ad5
...@@ -602,8 +602,6 @@ static void _mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, ...@@ -602,8 +602,6 @@ static void _mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds,
u32 high = 0; u32 high = 0;
if (s->reg >= 0x100) { if (s->reg >= 0x100) {
int ret;
ret = mv88e6xxx_reg_read(ds, REG_PORT(port), ret = mv88e6xxx_reg_read(ds, REG_PORT(port),
s->reg - 0x100); s->reg - 0x100);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册