]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs/btrfs: drop if around WARN_ON
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 3 Nov 2012 20:30:18 +0000 (20:30 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:24 +0000 (17:15 -0500)
commit6c1500f22a7be3a24ad3dffcdbf04be3f676521b
treebef37d29a8bac05bcf594df26a3eb340141d165e
parent31b1a2bd758f439fc945b3ac5899d890cb7e2dc6
fs/btrfs: drop if around WARN_ON

Just use WARN_ON rather than an if containing only WARN_ON(1).

A simplified version of the semantic patch that makes this transformation
is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
@@
- if (e) WARN_ON(1);
+ WARN_ON(e);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/backref.c
fs/btrfs/ctree.c
fs/btrfs/inode.c