projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306f7aa
)
ieee802154: cleanup ieee802154_be64_to_le64
author
Alexander Aring
<
[email protected]
>
Wed, 11 Feb 2015 13:39:16 +0000
(14:39 +0100)
committer
Marcel Holtmann
<
[email protected]
>
Sat, 14 Feb 2015 04:19:58 +0000
(
05:19
+0100)
This patch cleanups the ieee802154_be64_to_le64 function. This patch
removes an unnecessary temporary variable.
Signed-off-by: Alexander Aring <
[email protected]
>
Signed-off-by: Marcel Holtmann <
[email protected]
>
include/net/mac802154.h
patch
|
blob
|
history
diff --git
a/include/net/mac802154.h
b/include/net/mac802154.h
index 8506478117496c971f19ec07eb00625b4b847498..c5c64455bcfa69a5e2e152a54ad93da190d4bc8b 100644
(file)
--- a/
include/net/mac802154.h
+++ b/
include/net/mac802154.h
@@
-19,6
+19,7
@@
#include <net/af_ieee802154.h>
#include <linux/ieee802154.h>
#include <linux/skbuff.h>
+#include <linux/unaligned/memmove.h>
#include <net/cfg802154.h>
@@
-233,9
+234,7
@@
struct ieee802154_ops {
*/
static inline void ieee802154_be64_to_le64(void *le64_dst, const void *be64_src)
{
- __le64 tmp = (__force __le64)swab64p(be64_src);
-
- memcpy(le64_dst, &tmp, IEEE802154_EXTENDED_ADDR_LEN);
+ __put_unaligned_memmove64(swab64p(be64_src), le64_dst);
}
/**