Discussion:
[ofw] [PATCH 1/3] uDAPL: dapltest: ppc64 endian issue with exchanged mem handle and address
Davis, Arlin R
2013-05-30 17:55:29 UTC
Permalink
Signed-off-by: Pradeep Satyanarayana <***@lus.ibm.com>
Acked-by: Arlin Davis <***@intel.com>
---
test/dapltest/common/dapl_endian.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/test/dapltest/common/dapl_endian.c b/test/dapltest/common/dapl_endian.c
index d93fbb9..c77f2f2 100644
--- a/test/dapltest/common/dapl_endian.c
+++ b/test/dapltest/common/dapl_endian.c
@@ -77,8 +77,6 @@ DAT_UINT64 DT_Endian64(DAT_UINT64 val)

DAT_UINT32 DT_EndianMemHandle(DAT_UINT32 val)
{
- if (DT_local_is_little_endian)
- return val;
val = ((val & c1a32) << 8) | ((val & c1b32) >> 8);
val = ((val & c2a32) << 16) | ((val & c2b32) >> 16);
return (val);
@@ -88,8 +86,6 @@ DAT_UINT64 DT_EndianMemAddress(DAT_UINT64 val)
{
DAT_UINT64 val64;

- if (DT_local_is_little_endian)
- return val;
val64 = val;
val64 = ((val64 & c1a64) << 8) | ((val64 & c1b64) >> 8);
val64 = ((val64 & c2a64) << 16) | ((va

Loading...