ipv6: Use BUG_ON
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Acked-by Julia Lawall <[email protected]>
---
To send to: "David S. Miller" <[email protected]>,Alexey Kuznetsov <[email protected]>,James Morris <[email protected]>,Hideaki YOSHIFUJI <[email protected]>,Patrick McHardy <[email protected]>,[email protected],[email protected]
net/ipv6/ip6_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/ip6_output.c +2 -2
@@ -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);
Signature · 1 line
1.9.1
From: Himangi Saraogi <[email protected]>
Date: Sat, 12 Jul 2014 01:57:17 +0530
Quoted 10 lines
The semantic patch that makes this transformation is as follows:
// <smpl>
@@ expression e; @@(quoted diff) +1
-1-if (e) BUG(); +BUG_ON(e);// </smpl>
Signed-off-by Himangi Saraogi <[email protected]>Acked-by Julia Lawall <[email protected]>
Applied.