Skip to content

Commit

Permalink
ipv4: Delete redundant sk_family assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Feb 2, 2009
1 parent 24dd1fa commit f15fbcd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ static int inet_create(struct net *net, struct socket *sock, int 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;

Expand Down

0 comments on commit f15fbcd

Please sign in to comment.