aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.cz> 2011-04-19 18:00:01 +0200
committerGravatar David Sterba <dsterba@suse.cz> 2011-05-02 13:57:20 +0200
commitc704005d886cf0bc9bc3974eb009b22fe0da32c7 (patch)
treeb9effb8d686af95ca92782697b75a70bf34a3964 /fs/btrfs/ctree.c
parentbtrfs: fix dereference before check (diff)
downloadlinux-c704005d886cf0bc9bc3974eb009b22fe0da32c7.tar.gz
linux-c704005d886cf0bc9bc3974eb009b22fe0da32c7.tar.bz2
linux-c704005d886cf0bc9bc3974eb009b22fe0da32c7.zip
btrfs: unify checking of IS_ERR and null
use IS_ERR_OR_NULL when possible, done by this coccinelle script: @ match @ identifier id; @@ ( - BUG_ON(IS_ERR(id) || !id); + BUG_ON(IS_ERR_OR_NULL(id)); | - IS_ERR(id) || !id + IS_ERR_OR_NULL(id) | - !id || IS_ERR(id) + IS_ERR_OR_NULL(id) ) Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.c')
0 files changed, 0 insertions, 0 deletions