summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-12-05 00:58:57 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-05 22:45:56 -0500
commit37742f028b301205c2b658c16bafbee7552035d0 (patch)
tree9cc1e4fa08f87b2c7cdc1ac169a0136074b871ec /net/unix/af_unix.c
parentd96606389720fff450955e2b5c81a3d5974c465c (diff)
sh_eth: read MAC address registers only once
The code reading the MAHR/MALR registers in 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 <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions