projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24dd1fa
)
ipv4: Delete redundant sk_family assignment
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 2 Feb 2009 06:24:43 +0000
(22:24 -0800)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index 957cd054732cd7b23a05c6fb22206bbaa5c4a0c3..c79087719df0e4f8242eca4c25a6df37dd94b5a2 100644
(file)
--- 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;