aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-04-03 17:30:12 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-03 17:30:12 -0400
commit5616bdd6dfeb4e36be499dbac245e4d3be90a138 (patch)
treee027cdc9813a8cdf90398fa173f8f3fc08324a75 /net/ipv4/af_inet.c
parentc1e9894d486dc249331f4f04859c26147a778154 (diff)
[INET]: uc_ttl assignment in inet_ctl_sock_create is redundant.
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>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index cf766ad15776..72ae8ed5a3d7 100644
--- 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,
1260 if (rc == 0) { 1260 if (rc == 0) {
1261 *sk = sock->sk; 1261 *sk = sock->sk;
1262 (*sk)->sk_allocation = GFP_ATOMIC; 1262 (*sk)->sk_allocation = GFP_ATOMIC;
1263 inet_sk(*sk)->uc_ttl = -1;
1264 /* 1263 /*
1265 * Unhash it so that IP input processing does not even see it, 1264 * Unhash it so that IP input processing does not even see it,
1266 * we do not wish this socket to see incoming packets. 1265 * we do not wish this socket to see incoming packets.