l2tp: Fix build warning with ipv6 disabled.
authorDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 19:44:26 +0000 (15:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:31:00 +0000 (04:31 -0800)
commitd980ed627b35d4685a4a27561dc3fc7a09226dab
treea74fe986e34dc263bb03852952eb471abe646944
parentbd83cd77073e5c54a88f976d6d6c785a1a80b0c0
l2tp: Fix build warning with ipv6 disabled.

[ Upstream commit 8d8a51e26a6d415e1470759f2cf5f3ee3ee86196 ]

net/l2tp/l2tp_core.c: In function ‘l2tp_verify_udp_checksum’:
net/l2tp/l2tp_core.c:499:22: warning: unused variable ‘tunnel’ [-Wunused-variable]

Create a helper "l2tp_tunnel()" to facilitate this, and as a side
effect get rid of a bunch of unnecessary void pointer casts.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/l2tp/l2tp_core.c