aboutsummaryrefslogtreecommitdiff
path: root/ccan/endian
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@au.ibm.com>2014-08-18 16:18:02 +0800
committerJeremy Kerr <jeremy.kerr@au.ibm.com>2014-08-18 16:18:02 +0800
commit1aa5c1bde26329f7f261dca1c7d1fa12672aa893 (patch)
tree2e2f24a5113bcbe7866f132a8e0fef6407bc7462 /ccan/endian
parent78b62fea12f1b9b6237560b35b904a962f0231bf (diff)
downloadskiboot-1aa5c1bde26329f7f261dca1c7d1fa12672aa893.zip
skiboot-1aa5c1bde26329f7f261dca1c7d1fa12672aa893.tar.gz
skiboot-1aa5c1bde26329f7f261dca1c7d1fa12672aa893.tar.bz2
ccan/endian: fix cpu_to_be64 on big-endian
Commit 9f64cb20 introduced a spurious unconditional byteswap, which we don't need for HAVE_BIG_ENDIAN. Signed-off-by: Jeremy Kerr <jeremy.kerr@au.ibm.com>
Diffstat (limited to 'ccan/endian')
-rw-r--r--ccan/endian/endian.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ccan/endian/endian.h b/ccan/endian/endian.h
index dc9f62e..0c99cc8 100644
--- a/ccan/endian/endian.h
+++ b/ccan/endian/endian.h
@@ -279,7 +279,6 @@ static inline uint16_t le16_to_cpu(leint16_t le_val)
*/
static inline beint64_t cpu_to_be64(uint64_t native)
{
- return ((ENDIAN_CAST beint64_t)BSWAP_64(native));
return CPU_TO_BE64(native);
}