Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Li RongQing and committed by
David S. Miller
41c91996 b1937227

+1 -1
+1 -1
net/ipv4/tcp_fastopen.c
··· 115 115 116 116 if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) { 117 117 struct in6_addr *buf = (struct in6_addr *) tmp.val; 118 - int i = 4; 118 + int i; 119 119 120 120 for (i = 0; i < 4; i++) 121 121 buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i];