diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-07-12 01:57:17 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-11 15:06:38 -0700 |
commit | e3f0b86b996d86940357e5ca9788771618d731f1 (patch) | |
tree | b51950c02c5b28c5156b858040b2d932167440d9 /net/ipv6/ip6_output.c | |
parent | 8242fc33925c8da802b651a702a902a204142e22 (diff) | |
download | op-kernel-dev-e3f0b86b996d86940357e5ca9788771618d731f1.zip op-kernel-dev-e3f0b86b996d86940357e5ca9788771618d731f1.tar.gz |
ipv6: Use BUG_ON
The semantic patch that makes this transformation is as follows:
// <smpl>
@@ expression e; @@
-if (e) BUG();
+BUG_ON(e);
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index fa83bdd..9b395c6 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -801,8 +801,8 @@ slow_path: /* * Copy a block of the IP datagram. */ - if (skb_copy_bits(skb, ptr, skb_transport_header(frag), len)) - BUG(); + BUG_ON(skb_copy_bits(skb, ptr, skb_transport_header(frag), + len)); left -= len; fh->frag_off = htons(offset); |