[openib-general] [PATCH] mthca: cosmetic fix for handle_error_cqe()

Bernhard Fischer blist at aon.at
Thu May 26 06:28:15 PDT 2005


Hi,

- remove unneeded if-condition in mthca's cq error path

Signed-off-by: Bernhard Fischer <rep.nop at aon.at>

-------------- next part --------------
diff -X excl -rduNp gen2.2423.oorig/trunk/src/linux-kernel/infiniband/hw/mthca/mthca_cq.c gen2.2423/trunk/src/linux-kernel/infiniband/hw/mthca/mthca_cq.c
--- gen2.2423.oorig/trunk/src/linux-kernel/infiniband/hw/mthca/mthca_cq.c	2005-04-08 10:22:08.000000000 +0200
+++ gen2.2423/trunk/src/linux-kernel/infiniband/hw/mthca/mthca_cq.c	2005-05-23 14:26:08.000000000 +0200
@@ -280,7 +280,7 @@ static int handle_error_cqe(struct mthca
 	int dbd;
 	u32 new_wqe;
 
-	if (1 && cqe->syndrome != SYNDROME_WR_FLUSH_ERR) {
+	if (cqe->syndrome != SYNDROME_WR_FLUSH_ERR) {
 		int j;
 
 		mthca_dbg(dev, "%x/%d: error CQE -> QPN %06x, WQE @ %08x\n",



More information about the general mailing list