]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: hide unused local variable
authorArnd Bergmann <arnd@arndb.de>
Mon, 7 Nov 2016 21:09:07 +0000 (22:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 23:59:50 +0000 (18:59 -0500)
commit35c01cfe97b37ab9ee5d85fb633cb7e0a687e9d3
tree45bfdd24fded10417afccebdfdf182e08ddbdfde
parent97b300ca02dab40103bc771a41cd46c1b30cde33
vxlan: hide unused local variable

A bugfix introduced a harmless warning in v4.9-rc4:

drivers/net/vxlan.c: In function 'vxlan_group_used':
drivers/net/vxlan.c:947:21: error: unused variable 'sock6' [-Werror=unused-variable]

This hides the variable inside of the same #ifdef that is
around its user. The extraneous initialization is removed
at the same time, it was accidentally introduced in the
same commit.

Fixes: b9141fa25fad ("vxlan: avoid using stale vxlan socket.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c