aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2011-04-19 12:00:01 -0400
committerDavid Sterba <dsterba@suse.cz>2011-05-02 07:57:20 -0400
commitc704005d886cf0bc9bc3974eb009b22fe0da32c7 (patch)
treeb9effb8d686af95ca92782697b75a70bf34a3964 /fs/btrfs/acl.c
parent4891aca2dac612a2f21a3278d9906ade13b55788 (diff)
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/acl.c')
-rw-r--r--fs/btrfs/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index 5d505aaa72fb..1a21c99a91b8 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -287,7 +287,7 @@ int btrfs_acl_chmod(struct inode *inode)
287 return 0; 287 return 0;
288 288
289 acl = btrfs_get_acl(inode, ACL_TYPE_ACCESS); 289 acl = btrfs_get_acl(inode, ACL_TYPE_ACCESS);
290 if (IS_ERR(acl) || !acl) 290 if (IS_ERR_OR_NULL(acl))
291 return PTR_ERR(acl); 291 return PTR_ERR(acl);
292 292
293 clone = posix_acl_clone(acl, GFP_KERNEL); 293 clone = posix_acl_clone(acl, GFP_KERNEL);