]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: remove BUG_ON in l2tp_session_queue_purge
authorTom Parkin <tparkin@katalix.com>
Fri, 24 Jul 2020 15:31:51 +0000 (16:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 00:19:14 +0000 (17:19 -0700)
commit5f11ed4b5ecba5674988fdfd557098b79770ca5b
treeba9e343a7de10b6767cd855576e5ad8c7d3d5b31
parentdaf8092b89027eb40ea9e65fa22c818dda323482
l2tp: remove BUG_ON in l2tp_session_queue_purge

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

Having a BUG_ON checking the session 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