diff mbox

[1/3] uDAPL: dapltest: ppc64 endian issue with exchanged mem handle and address

Message ID 54347E5A035A054EAE9D05927FB467F972D531F6@ORSMSX101.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis May 30, 2013, 5:55 p.m. UTC
Signed-off-by: Pradeep Satyanarayana <pradeep@lus.ibm.com>

Acked-by: Arlin Davis <arlin.r.davis@intel.com>

---
 test/dapltest/common/dapl_endian.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

-- 
1.7.3
diff mbox

Patch

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) | ((val64 & c2b64) >> 16);