diff options
author | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2017-08-05 13:05:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 14:18:01 -0700 |
commit | 0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f (patch) | |
tree | 5812c1a71068c828e4074c5dd3e853bc5442afb3 /net/switchdev/switchdev.c | |
parent | 9c84258ed68a1dc3c58a16741747a19df9256c5e (diff) |
net: dsa: lan9303: refactor lan9303_get_ethtool_stats
In lan9303_get_ethtool_stats: Get rid of 0x400 constant magic
by using new lan9303_read_switch_reg() inside loop.
Reduced scope of two variables.
Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions