projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e9894
)
[INET]: uc_ttl assignment in inet_ctl_sock_create is redundant.
author
Denis V. Lunev
<den@openvz.org>
Thu, 3 Apr 2008 21:30:12 +0000
(14:30 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Apr 2008 21:30:12 +0000
(14:30 -0700)
uc_ttl is initialized in inet(6)_create and never changed except
setsockopt ioctl. Remove this assignment.
Signed-off-by: Denis V. Lunev <den@openvz.org>
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 cf766ad15776afa2e4b86d9842b0c0506fdc507c..72ae8ed5a3d7143342b1a8fd2a9b2ce599671964 100644
(file)
--- a/
net/ipv4/af_inet.c
+++ b/
net/ipv4/af_inet.c
@@
-1260,7
+1260,6
@@
int inet_ctl_sock_create(struct sock **sk, unsigned short family,
if (rc == 0) {
*sk = sock->sk;
(*sk)->sk_allocation = GFP_ATOMIC;
- inet_sk(*sk)->uc_ttl = -1;
/*
* Unhash it so that IP input processing does not even see it,
* we do not wish this socket to see incoming packets.