mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8242fc3392
commit
e3f0b86b99
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue