Skip to content

Commit f15fbcd

Browse files
herbertxdavem330
authored andcommitted
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>
1 parent 24dd1fa commit f15fbcd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/ipv4/af_inet.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ static int inet_create(struct net *net, struct socket *sock, int protocol)
369369
sock_init_data(sock, sk);
370370

371371
sk->sk_destruct = inet_sock_destruct;
372-
sk->sk_family = PF_INET;
373372
sk->sk_protocol = protocol;
374373
sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv;
375374

0 commit comments

Comments
 (0)