[openib-general] [PATCH] [TRIVIAL] SDP: Eliminate uneeded initialization and fix some typos

Hal Rosenstock halr at voltaire.com
Wed Mar 9 02:35:17 PST 2005


SDP: Eliminate uneeded initialization and fix some typos

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: sdp_link.c
===================================================================
--- sdp_link.c	(revision 1967)
+++ sdp_link.c	(working copy)
@@ -232,7 +232,7 @@
 
 	if (!status) {
 		/*
-		 * on sucess save path record, stop waiting for info,
+		 * on success save path record, stop waiting for info,
 		 * and complete all waiting IOs
 		 */
 		info->flags &= ~SDP_LINK_F_PATH;
@@ -447,7 +447,6 @@
 		goto path;
 	}
 
-
 	if ((NUD_CONNECTED|NUD_DELAY|NUD_PROBE) &
 	    rt->u.dst.neighbour->nud_state) {
 		memcpy(&info->path.dgid,
Index: sdp_actv.c
===================================================================
--- sdp_actv.c	(revision 1967)
+++ sdp_actv.c	(working copy)
@@ -486,7 +486,6 @@
 	 * no endian swap needed for single byte values.
 	 */
         param.private_data_len           = (u8)(buff->tail - buff->data);
-        param.peer_to_peer               = 0;
         param.responder_resources        = 4;
         param.initiator_depth            = 4;
         param.remote_cm_response_timeout = 20;
Index: sdp_pass.c
===================================================================
--- sdp_pass.c	(revision 1967)
+++ sdp_pass.c	(working copy)
@@ -143,7 +143,7 @@
 	return result;
 }
 /*
- * Functions to handle incomming passive connection requests. (REQ)
+ * Functions to handle incoming passive connection requests. (REQ)
  */
 static int sdp_cm_accept(struct sdp_opt *conn)
 {
 






More information about the general mailing list