diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-02-11 08:39:17 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-02-13 23:19:58 -0500 |
commit | b976796950c7a41fe1b6b51236ddd08dd6480b80 (patch) | |
tree | e5b6aea88b6a6418a4dfd85fd65e85c344f553ed /include/net | |
parent | ba5bf17e8343c0b5b87a1240aa75c35c76b88e5e (diff) |
ieee802154: cleanup ieee802154_le64_to_be64
This patch cleanups the ieee802154_le64_to_be64 function. This patch
removes an unnecessary temporary variable.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac802154.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index c5c64455bcfa..fb4e8a3d6229 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h | |||
@@ -244,9 +244,7 @@ static inline void ieee802154_be64_to_le64(void *le64_dst, const void *be64_src) | |||
244 | */ | 244 | */ |
245 | static inline void ieee802154_le64_to_be64(void *be64_dst, const void *le64_src) | 245 | static inline void ieee802154_le64_to_be64(void *be64_dst, const void *le64_src) |
246 | { | 246 | { |
247 | __be64 tmp = (__force __be64)swab64p(le64_src); | 247 | __put_unaligned_memmove64(swab64p(le64_src), be64_dst); |
248 | |||
249 | memcpy(be64_dst, &tmp, IEEE802154_EXTENDED_ADDR_LEN); | ||
250 | } | 248 | } |
251 | 249 | ||
252 | /* Basic interface to register ieee802154 hwice */ | 250 | /* Basic interface to register ieee802154 hwice */ |