[openib-general] [PATCH][SDP][22/22] Whitespace cleanup in sdp_write.c

Tom Duffy Tom.Duffy at Sun.COM
Fri Feb 18 16:48:08 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c
===================================================================
--- linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c	(revision 1836)
+++ linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c	(working copy)
@@ -54,7 +54,6 @@ int sdp_event_write(struct sdp_opt *conn
 	 * error handling
 	 */
 	if (IB_WC_SUCCESS != comp->status) {
-
 		switch (comp->status) {
 		case IB_WC_WR_FLUSH_ERR:
 			/*
@@ -92,7 +91,6 @@ int sdp_event_write(struct sdp_opt *conn
 	type = sdp_desc_q_type_head(&conn->w_snk);
 	switch (type) {
 	case SDP_DESC_TYPE_BUFF:
-
 		buff = (struct sdpc_buff *) sdp_desc_q_get_head(&conn->w_snk);
 		SDP_EXPECT((NULL != buff));
 
@@ -103,7 +101,6 @@ int sdp_event_write(struct sdp_opt *conn
 
 		break;
 	case SDP_DESC_TYPE_IOCB:
-
 		iocb = (struct sdpc_iocb *)sdp_desc_q_look_head(&conn->w_snk);
 		if (NULL == iocb || iocb->wrid != comp->wr_id) {
 
@@ -120,7 +117,6 @@ int sdp_event_write(struct sdp_opt *conn
 
 		result = sdp_iocb_complete(iocb, 0);
 		if (0 > result) {
-
 			sdp_dbg_warn(conn, "Error <%d> completing iocb. <%d>",
 				     result, iocb->key);
 			goto error;
@@ -128,11 +124,9 @@ int sdp_event_write(struct sdp_opt *conn
 
 		break;
 	case SDP_DESC_TYPE_NONE:
-
 		iocb = (struct sdpc_iocb *)sdp_desc_q_look_type_head(&conn->send_queue,
 								     SDP_DESC_TYPE_IOCB);
 		if (NULL == iocb) {
-
 			sdp_dbg_warn(conn, 
 				     "No IOCB on write complete <%llu:%d:%d>",
 				     (unsigned long long)comp->wr_id,
@@ -154,7 +148,6 @@ int sdp_event_write(struct sdp_opt *conn
 
 		break;
 	default:
-
 		sdp_warn("Unknown type <%d> at head of WRITE SINK queue. <%d>",
 			 type, sdp_desc_q_size(&conn->w_snk));
 		result = -EPROTO;
@@ -170,7 +163,6 @@ int sdp_event_write(struct sdp_opt *conn
 	 */
 	result = sdp_send_flush(conn);
 	if (0 > result) {
-
 		sdp_dbg_warn(conn, "Error <%d> flushing send queue.", result);
 		goto error;
 	}
@@ -180,7 +172,6 @@ int sdp_event_write(struct sdp_opt *conn
 	 */
 	result = sdp_recv_flush(conn);
 	if (0 > result) {
-
 		sdp_dbg_warn(conn, "Error <%d> flushing recv queue.", result);
 		goto error;
 	}




More information about the general mailing list