Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9767969 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

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: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ba5bf17e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -244,9 +244,7 @@ static inline void ieee802154_be64_to_le64(void *le64_dst, const void *be64_src)
 */
static inline void ieee802154_le64_to_be64(void *be64_dst, const void *le64_src)
{
	__be64 tmp = (__force __be64)swab64p(le64_src);

	memcpy(be64_dst, &tmp, IEEE802154_EXTENDED_ADDR_LEN);
	__put_unaligned_memmove64(swab64p(le64_src), be64_dst);
}

/* Basic interface to register ieee802154 hwice */