]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 19:44:26 +0000 (15:44 -0400)
commit7ce67abf98a494d72ff5bba2703e8acb627a3c93
treee9a32c88110ccf5382726ec1d7321ebfa2e878d2
parenteccb3dbd09112ac02bd527e2428d51126d6ceb69
l2tp: Fix build warning with ipv6 disabled.

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>
net/l2tp/l2tp_core.c