Btrfs: use BUG_ON
authorHIMANGI SARAOGI <himangi774@gmail.com>
Tue, 8 Jul 2014 22:21:41 +0000 (03:51 +0530)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:34 +0000 (13:37 -0700)
commit14586651ed8f067e4add72c739f0bd2c2620fd9d
tree929d439ac494d809c21ad1f490429806561cc725
parent7880991344f73647fa2222b198cf5cfc10805ac2
Btrfs: use BUG_ON

Use BUG_ON(x) rather than if(x) BUG();

The semantic patch that fixes this problem is as follows:

// <smpl>
@@ identifier x; @@
-if (x) BUG();
+BUG_ON(x);
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c