Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3908e22 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

dcbnl: Use BUG_ON() instead of BUG()



Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39912f9c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;