cleanup duplicate setting of read privileges in dapls_convert_privileges

Signed-off-by: Arlin Davis <[email protected]>
---
 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

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to