git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/net: replace BUG() with BUG_ON() if possible
[pandora-kernel.git]
/
drivers
/
net
/
pppol2tp.c
diff --git
a/drivers/net/pppol2tp.c
b/drivers/net/pppol2tp.c
index
5b07dd8
..
5981deb
100644
(file)
--- a/
drivers/net/pppol2tp.c
+++ b/
drivers/net/pppol2tp.c
@@
-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);