vxlan: Refactor vxlan_udp_encap_recv() to kill compiler warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 4 Sep 2015 10:49:32 +0000 (12:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Sep 2015 02:48:03 +0000 (19:48 -0700)
commit0f1b7354e0d65ad528b820a8a46c15d70954f699
tree8d4d0b65d96289dffba234bc9843461b9888378f
parent99c79eceb152e2ac7f8a81ff55d4a810f730ec7b
vxlan: Refactor vxlan_udp_encap_recv() to kill compiler warning

drivers/net/vxlan.c: In function ‘vxlan_udp_encap_recv’:
drivers/net/vxlan.c:1226: warning: ‘info’ may be used uninitialized in this function

While this warning is a false positive, it can be killed easily by
getting rid of the pointer intermediary and referring directly to the
ip_tunnel_info structure.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c