diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-09-29 03:04:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-29 12:31:12 -0400 |
commit | 41c91996d99394a75912aa5bfda300b85789ed43 (patch) | |
tree | d554a13484cf8cad0a35a5067a30e28e837c2695 | |
parent | b1937227316417aa7568d01e6fa1f272e98fb890 (diff) |
tcp: remove unnecessary assignment.
This variable i is overwritten to 0 by following code
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/tcp_fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c index 9771563ab564..815c85e3b1e0 100644 --- a/net/ipv4/tcp_fastopen.c +++ b/net/ipv4/tcp_fastopen.c | |||
@@ -115,7 +115,7 @@ static bool tcp_fastopen_cookie_gen(struct request_sock *req, | |||
115 | 115 | ||
116 | if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) { | 116 | if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) { |
117 | struct in6_addr *buf = (struct in6_addr *) tmp.val; | 117 | struct in6_addr *buf = (struct in6_addr *) tmp.val; |
118 | int i = 4; | 118 | int i; |
119 | 119 | ||
120 | for (i = 0; i < 4; i++) | 120 | for (i = 0; i < 4; i++) |
121 | buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i]; | 121 | buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i]; |