projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a950ad
)
dsa: mv88e6xxx: Drop duplicate declaration of 'ret' variable
author
Guenter Roeck
<linux@roeck-us.net>
Thu, 16 Apr 2015 13:49:50 +0000
(06:49 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 16 Apr 2015 16:15:25 +0000
(12:15 -0400)
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>
drivers/net/dsa/mv88e6xxx.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mv88e6xxx.c
b/drivers/net/dsa/mv88e6xxx.c
index f64186a5f63453f38fac2d8c7921439f758796df..12f186cb30cc9662f280252bda8e39b3664cf0d8 100644
(file)
--- 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)