aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEgil Hjelmeland <[email protected]>2017-08-05 11:05:50 +0000
committerDavid S. Miller <[email protected]>2017-08-07 21:18:01 +0000
commit0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f (patch)
tree5812c1a71068c828e4074c5dd3e853bc5442afb3 /net/switchdev/switchdev.c
parentnet: dsa: lan9303: Rename lan9303_xxx_packet_processing() (diff)
downloadkernel-0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f.tar.gz
kernel-0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f.zip
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions