提交 5616bdd6 编写于 作者: D Denis V. Lunev 提交者: David S. Miller

[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: NDenis V. Lunev <den@openvz.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c1e9894d
...@@ -1260,7 +1260,6 @@ int inet_ctl_sock_create(struct sock **sk, unsigned short family, ...@@ -1260,7 +1260,6 @@ int inet_ctl_sock_create(struct sock **sk, unsigned short family,
if (rc == 0) { if (rc == 0) {
*sk = sock->sk; *sk = sock->sk;
(*sk)->sk_allocation = GFP_ATOMIC; (*sk)->sk_allocation = GFP_ATOMIC;
inet_sk(*sk)->uc_ttl = -1;
/* /*
* Unhash it so that IP input processing does not even see it, * Unhash it so that IP input processing does not even see it,
* we do not wish this socket to see incoming packets. * we do not wish this socket to see incoming packets.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册