mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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>
This commit is contained in:
parent
24dd1fa184
commit
f15fbcd7d8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user