diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-09-29 07:04:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-29 16:31:12 (GMT) |
commit | 41c91996d99394a75912aa5bfda300b85789ed43 (patch) | |
tree | d554a13484cf8cad0a35a5067a30e28e837c2695 /net/ipv4 | |
parent | b1937227316417aa7568d01e6fa1f272e98fb890 (diff) | |
download | linux-41c91996d99394a75912aa5bfda300b85789ed43.tar.xz |
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>
Diffstat (limited to 'net/ipv4')
-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 9771563..815c85e 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, if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) { struct in6_addr *buf = (struct in6_addr *) tmp.val; - int i = 4; + int i; for (i = 0; i < 4; i++) buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i]; |