drivers/net: replace BUG() with BUG_ON() if possible
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
710b523ac5
commit
0ee904c35c
@@ -1238,8 +1238,7 @@ static void pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel)
|
||||
struct pppol2tp_session *session;
|
||||
struct sock *sk;
|
||||
|
||||
if (tunnel == NULL)
|
||||
BUG();
|
||||
BUG_ON(tunnel == NULL);
|
||||
|
||||
PRINTK(tunnel->debug, PPPOL2TP_MSG_CONTROL, KERN_INFO,
|
||||
"%s: closing all sessions...\n", tunnel->name);
|
||||
|
Reference in New Issue
Block a user