ipv4: Delete redundant sk_family assignment
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 2 Feb 2009 06:24:43 +0000 (22:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Feb 2009 06:24:43 +0000 (22:24 -0800)
sk_alloc now sets sk_family so this is redundant.  In fact it caught
my eye because sock_init_data already uses sk_family so this is too
late anyway.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c

index 957cd054732cd7b23a05c6fb22206bbaa5c4a0c3..c79087719df0e4f8242eca4c25a6df37dd94b5a2 100644 (file)
@@ -369,7 +369,6 @@ lookup_protocol:
        sock_init_data(sock, sk);
 
        sk->sk_destruct    = inet_sock_destruct;
-       sk->sk_family      = PF_INET;
        sk->sk_protocol    = protocol;
        sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv;