[openib-general] [PATCH] remove redundant check in mthca_provider.c

James Lentini jlentini at netapp.com
Thu May 19 10:03:08 PDT 2005


Remove redundant check of pd->uobject in mthca_provider.c

Signed-off-by: James Lentini <jlentini at netapp.com>
-------------- next part --------------
Index: infiniband/hw/mthca/mthca_provider.c
===================================================================
--- infiniband/hw/mthca/mthca_provider.c	(revision 2404)
+++ infiniband/hw/mthca/mthca_provider.c	(working copy)
@@ -478,9 +478,7 @@
 				kfree(qp);
 				return ERR_PTR(err);
 			}
-		}
 
-		if (pd->uobject) {
 			qp->mr.ibmr.lkey = ucmd.lkey;
 			qp->sq.db_index  = ucmd.sq_db_index;
 			qp->rq.db_index  = ucmd.rq_db_index;


More information about the general mailing list