aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSergei Shtylyov <[email protected]>2015-12-05 00:58:07 +0300
committerDavid S. Miller <[email protected]>2015-12-05 22:45:55 -0500
commitd96606389720fff450955e2b5c81a3d5974c465c (patch)
tree4e892dfd9b45b6e0950d4951b09d4e598b7d049a /tools/perf/scripts/python/bin
parent04f96468f78897099188185efda95fba9f371b7c (diff)
ravb: read MAC address registers only once
The code reading the MAHR/MALR registers in ravb_read_mac_address() is terribly ineffective -- it reads MAHR 4 times and MALR 2 times, while it's enough to read each register only once. Use the local variables to achieve that, somewhat beautifying the code while at it... Signed-off-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions