Skip to content

Commit

Permalink
tcp: remove unnecessary assignment.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li RongQing authored and David S. Miller committed Sep 29, 2014
1 parent b193722 commit 41c9199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_fastopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 41c9199

Please sign in to comment.