Skip to content

Commit 41c9199

Browse files
Li RongQingdavem330
authored andcommitted
tcp: remove unnecessary assignment.
This variable i is overwritten to 0 by following code Signed-off-by: Li RongQing <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b193722 commit 41c9199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/tcp_fastopen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static bool tcp_fastopen_cookie_gen(struct request_sock *req,
115115

116116
if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) {
117117
struct in6_addr *buf = (struct in6_addr *) tmp.val;
118-
int i = 4;
118+
int i;
119119

120120
for (i = 0; i < 4; i++)
121121
buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i];

0 commit comments

Comments
 (0)