From: Thomas Graf Date: Wed, 13 Jun 2012 22:40:15 +0000 (+0000) Subject: dcbnl: Use BUG_ON() instead of BUG() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3908e22ad8bb6074934496ef171fd83605d7d3e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git dcbnl: Use BUG_ON() instead of BUG() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index da6ee81ce51..0a360072cfe 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;