netfilter: nft_byteorder: avoid unneeded le/be conversion steps
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Jan 2016 21:49:32 +0000 (22:49 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Jan 2016 13:02:59 +0000 (14:02 +0100)
commit4b8c4eddfc941a38e5bc716a37e8c4292cefaa6d
tree91e7f37873f6cb9a44a03b953500ee831d7c9cc5
parentf1640c3ddeec12804bc9a21feee85fc15aca95f6
netfilter: nft_byteorder: avoid unneeded le/be conversion steps

David points out that we to three le/be conversions instead
of just one.  Doesn't matter on x86_64 w. gcc, but other
architectures might be less lucky.

Since it also simplifies code just follow his advice.

Fixes: c0f3275f5cb ("nftables: byteorder: provide le/be 64 bit conversion helper")
Suggested-by: David Laight <David.Laight@aculab.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_byteorder.c