]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:35:12 +0000 (04:35 -0800)
commitf94b591b19d4c7c5d3aea008d1df8ec3d0abdd84
treea0878eebd592dd82137f2c2c7c180f550dc32064
parent84ee5cbb9a39a879806d79e0b4812c332418e52a
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