summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-02-02 07:24:43 +0100
committerDavid S. Miller <davem@davemloft.net>2009-02-02 07:24:43 +0100
commitf15fbcd7d857ca2ea20b57ba6dfe63aab89d0b8b (patch)
treeed55dc23e3faea39c4dcc770f556c828dcfda22c /net/ipv4
parentnet: move bsockets outside of read only beginning of struct inet_hashinfo (diff)
downloadlinux-f15fbcd7d857ca2ea20b57ba6dfe63aab89d0b8b.tar.xz
linux-f15fbcd7d857ca2ea20b57ba6dfe63aab89d0b8b.zip
ipv4: Delete redundant sk_family assignment
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/af_inet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 957cd054732c..c79087719df0 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -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;