]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: md5: hide unused variable
authorArnd Bergmann <arnd@arndb.de>
Tue, 20 Jun 2017 20:11:21 +0000 (22:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jun 2017 15:19:35 +0000 (11:19 -0400)
commit5e94708536a4ec5d3e23dba7b8bda59b20186d45
treec97f466496f980f652c5d813ba42b9a63d76e1da
parent97cb7f5e3f1e758432f777090aa50e99fadaa9c2
tcp: md5: hide unused variable

Changing from a memcpy to per-member comparison left the
size variable unused:

net/ipv4/tcp_ipv4.c: In function 'tcp_md5_do_lookup':
net/ipv4/tcp_ipv4.c:910:15: error: unused variable 'size' [-Werror=unused-variable]

This does not show up when CONFIG_IPV6 is enabled, but the
variable can be removed either way, along with the now unused
assignment.

Fixes: 2244260fac82 ("tcp: md5: add an address prefix for key lookup")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c