diff options
author | Joe Perches <joe@perches.com> | 2014-01-20 09:52:16 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-21 18:13:04 -0800 |
commit | 116e853f7f1548de3c1aed3181781788be42b99a (patch) | |
tree | daf5ebbb0b794d9c93ec7ca74c50da7b64a48d5f /net/atm/mpc.c | |
parent | 90ccb6aa407a906886b0d372996e71c4ee78eeca (diff) | |
download | linux-116e853f7f1548de3c1aed3181781788be42b99a.tar.bz2 |
atm: Use ether_addr_copy
Use ether_addr_copy instead of memcpy(a, b, ETH_ALEN) to
save some cycles on arm and powerpc.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/mpc.c')
-rw-r--r-- | net/atm/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 3af12755cd04..b71ff6b234f2 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c @@ -478,7 +478,7 @@ static const uint8_t *copy_macs(struct mpoa_client *mpc, return NULL; } } - memcpy(mpc->mps_macs, router_mac, ETH_ALEN); + ether_addr_copy(mpc->mps_macs, router_mac); tlvs += 20; if (device_type == MPS_AND_MPC) tlvs += 20; if (mps_macs > 0) memcpy(mpc->mps_macs, tlvs, mps_macs*ETH_ALEN); |