summaryrefslogtreecommitdiffstats
path: root/net/dcb/dcbnl.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-06-14 00:40:15 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-14 10:45:46 +0200
commitb3908e22ad8bb6074934496ef171fd83605d7d3e (patch)
treeadc90759c42e8ab9f0a3e2a3c500243df2b11ecc /net/dcb/dcbnl.c
parentdcbnl: Silence harmless gcc warning about uninitialized reply_nlh (diff)
downloadlinux-b3908e22ad8bb6074934496ef171fd83605d7d3e.tar.xz
linux-b3908e22ad8bb6074934496ef171fd83605d7d3e.zip
dcbnl: Use BUG_ON() instead of BUG()
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb/dcbnl.c')
-rw-r--r--net/dcb/dcbnl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index da6ee81ce51f..0a360072cfec 100644
--- 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;