Skip to content
Commit 8d8a51e2 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c0c52c9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment