l2tp: remove BUG_ON in l2tp_tunnel_closeall
authorTom Parkin <tparkin@katalix.com>
Fri, 24 Jul 2020 15:31:52 +0000 (16:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 00:19:14 +0000 (17:19 -0700)
commitcd3e29b333cc2571a5875d1b45c460dc948a2f95
treeb811f95e535e4ba7060c1cc60b9698ff8bd8425e
parentce2f86ae253de3f3e961d4f91438604a97c29752
l2tp: remove BUG_ON in l2tp_tunnel_closeall

l2tp_tunnel_closeall is only called from l2tp_core.c, and it's easy
to statically analyse the code path calling it to validate that it
should never be passed a NULL tunnel pointer.

Having a BUG_ON checking the tunnel pointer triggers a checkpatch
warning.  Since the BUG_ON is of no value, remove it to avoid the
warning.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c