[ofw] [PATCH] uDAPL v2 - openib_common: remote memory read privilege set multi times
Davis, Arlin R
arlin.r.davis at intel.com
Fri Dec 4 14:36:56 PST 2009
cleanup duplicate setting of read privileges in dapls_convert_privileges
Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
dapl/openib_common/mem.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dapl/openib_common/mem.c b/dapl/openib_common/mem.c
index b286f8c..ddf85a4 100644
--- a/dapl/openib_common/mem.c
+++ b/dapl/openib_common/mem.c
@@ -55,10 +55,6 @@ STATIC _INLINE_ int dapls_convert_privileges(IN DAT_MEM_PRIV_FLAGS privileges)
access |= IBV_ACCESS_REMOTE_WRITE;
if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges)
access |= IBV_ACCESS_REMOTE_READ;
- if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges)
- access |= IBV_ACCESS_REMOTE_READ;
- if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges)
- access |= IBV_ACCESS_REMOTE_READ;
#ifdef DAT_EXTENSIONS
if (DAT_IB_MEM_PRIV_REMOTE_ATOMIC & privileges)
access |= IBV_ACCESS_REMOTE_ATOMIC;
--
1.5.2.5
More information about the ofw
mailing list