From: Denis V. Lunev Date: Thu, 3 Apr 2008 21:30:12 +0000 (-0700) Subject: [INET]: uc_ttl assignment in inet_ctl_sock_create is redundant. X-Git-Tag: v2.6.26-rc1~1138^2~218 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5616bdd6dfeb4e36be499dbac245e4d3be90a138;p=karo-tx-linux.git [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 Signed-off-by: David S. Miller --- 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, 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.