aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/ehca
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rdma/ehca')
-rw-r--r--drivers/staging/rdma/ehca/ehca_mrmw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rdma/ehca/ehca_mrmw.c b/drivers/staging/rdma/ehca/ehca_mrmw.c
index 1814af72cf2a..06b832be9dfb 100644
--- a/drivers/staging/rdma/ehca/ehca_mrmw.c
+++ b/drivers/staging/rdma/ehca/ehca_mrmw.c
@@ -1339,7 +1339,6 @@ int ehca_reg_internal_maxmr(
e_mr->ib.ib_mr.pd = &e_pd->ib_pd;
e_mr->ib.ib_mr.uobject = NULL;
atomic_inc(&(e_pd->ib_pd.usecnt));
- atomic_set(&(e_mr->ib.ib_mr.usecnt), 0);
*e_maxmr = e_mr;
return 0;