mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4bba392592
commit
09a626600b
11 changed files with 21 additions and 40 deletions
|
|
@ -297,8 +297,7 @@ static int pfkey_error(struct sadb_msg *orig, int err, struct sock *sk)
|
|||
err = EINTR;
|
||||
if (err >= 512)
|
||||
err = EINVAL;
|
||||
if (err <= 0 || err >= 256)
|
||||
BUG();
|
||||
BUG_ON(err <= 0 || err >= 256);
|
||||
|
||||
hdr = (struct sadb_msg *) skb_put(skb, sizeof(struct sadb_msg));
|
||||
pfkey_hdr_dup(hdr, orig);
|
||||
|
|
|
|||
Loading…
Reference in a new issue