[openib-general] [PATCH] SDP: remove redundant setting of sk_family

Tom Duffy tduffy at sun.com
Sat May 7 16:41:09 PDT 2005


sk_alloc() already takes care of setting sk_family to proto.  No need to
do it a second time in sdp.

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

Index: linux-2.6.11-openib/drivers/infiniband/ulp/sdp/sdp_conn.c
===================================================================
--- linux-2.6.11-openib/drivers/infiniband/ulp/sdp/sdp_conn.c	(revision 2278)
+++ linux-2.6.11-openib/drivers/infiniband/ulp/sdp/sdp_conn.c	(working copy)
@@ -1135,7 +1135,6 @@ struct sdp_opt *sdp_conn_alloc(int prior
 	/*
 	 * other non-zero sock initialization.
 	 */
-	sk->sk_family   = dev_root_s.proto;
 	sk->sk_protocol = IPPROTO_TCP;
 	/*
 	 * some callbacks. higher levels of linux (e.g. setsockopt) call




More information about the general mailing list