Commit b3908e22ad8bb6074934496ef171fd83605d7d3e

Authored by Thomas Graf
Committed by David S. Miller
1 parent 39912f9cf9

dcbnl: Use BUG_ON() instead of BUG()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

... ... @@ -208,10 +208,7 @@
208 208 return NULL;
209 209  
210 210 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags);
211   - if (!nlh) {
212   - /* header should always fit, allocation must be buggy */
213   - BUG();
214   - }
  211 + BUG_ON(!nlh);
215 212  
216 213 dcb = nlmsg_data(nlh);
217 214 dcb->dcb_family = AF_UNSPEC;