Browse Source

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>
Li RongQing 11 years ago
parent
commit
41c91996d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/ipv4/tcp_fastopen.c

+ 1 - 1
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)) {
 		if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) {
 			struct in6_addr *buf = (struct in6_addr *) tmp.val;
 			struct in6_addr *buf = (struct in6_addr *) tmp.val;
-			int i = 4;
+			int i;
 
 
 			for (i = 0; i < 4; i++)
 			for (i = 0; i < 4; i++)
 				buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i];
 				buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i];