projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39912f9
)
dcbnl: Use BUG_ON() instead of BUG()
author
Thomas Graf
<tgraf@suug.ch>
Wed, 13 Jun 2012 22:40:15 +0000
(22:40 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Jun 2012 08:45:46 +0000
(
01:45
-0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/dcb/dcbnl.c
b/net/dcb/dcbnl.c
index da6ee81ce51f4067b919618a766031cc18de99df..0a360072cfec463bb52c8912bbb545a67148201d 100644
(file)
--- a/
net/dcb/dcbnl.c
+++ b/
net/dcb/dcbnl.c
@@
-208,10
+208,7
@@
static struct sk_buff *dcbnl_newmsg(int type, u8 cmd, u32 port, u32 seq,
return NULL;
nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags);
- if (!nlh) {
- /* header should always fit, allocation must be buggy */
- BUG();
- }
+ BUG_ON(!nlh);
dcb = nlmsg_data(nlh);
dcb->dcb_family = AF_UNSPEC;