]> git.hungrycats.org Git - linux/commit
Btrfs: use BUG_ON
authorHIMANGI SARAOGI <himangi774@gmail.com>
Tue, 8 Jul 2014 22:21:41 +0000 (03:51 +0530)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Wed, 3 Dec 2014 15:16:15 +0000 (10:16 -0500)
commit309e538e22bd4ce7349ca34117e5c47668fa80ef
treedc3f074d1081625b2770b333bfa23ff4c2108eb4
parent18fc83e4cb4cf403d2517809916a79f31582484f
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>
(cherry picked from commit 14586651ed8f067e4add72c739f0bd2c2620fd9d)
fs/btrfs/volumes.c