Skip to content

Commit

Permalink
dcbnl: Use BUG_ON() instead of BUG()
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tgraf authored and davem330 committed Jun 14, 2012
1 parent 39912f9 commit b3908e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3908e2

Please sign in to comment.