[NET]: Change some "if (x) BUG();" to "BUG_ON(x);"
This changes some simple "if (x) BUG();" statements to "BUG_ON(x);" Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4bba392592
commit
09a626600b
@@ -899,8 +899,7 @@ static void icmp_address_reply(struct sk_buff *skb)
|
||||
u32 _mask, *mp;
|
||||
|
||||
mp = skb_header_pointer(skb, 0, sizeof(_mask), &_mask);
|
||||
if (mp == NULL)
|
||||
BUG();
|
||||
BUG_ON(mp == NULL);
|
||||
for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|
||||
if (*mp == ifa->ifa_mask &&
|
||||
inet_ifa_match(rt->rt_src, ifa))
|
||||
|
Reference in New Issue
Block a user