aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-06-27 00:16:38 -0400
committerDavid Sterba <dsterba@suse.com>2018-08-06 07:12:41 -0400
commit4de426cd394e4de4d3039aff7d20724d7d988dcf (patch)
tree4c6abf5799a495f4600ccb22a72cbabd5070f378
parentdc7789ef8785ea996ecf302a89415439ccf10faa (diff)
btrfs: remove unnecessary curly braces in btrfs_get_acl
It's only coding style fix not functinal change. When if/else has only one statement then the braces are not needed. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/acl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index 7d673ec9e54a..3b66c957ea6f 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -40,13 +40,12 @@ struct posix_acl *btrfs_get_acl(struct inode *inode, int type)
40 return ERR_PTR(-ENOMEM); 40 return ERR_PTR(-ENOMEM);
41 size = btrfs_getxattr(inode, name, value, size); 41 size = btrfs_getxattr(inode, name, value, size);
42 } 42 }
43 if (size > 0) { 43 if (size > 0)
44 acl = posix_acl_from_xattr(&init_user_ns, value, size); 44 acl = posix_acl_from_xattr(&init_user_ns, value, size);
45 } else if (size == -ENODATA || size == 0) { 45 else if (size == -ENODATA || size == 0)
46 acl = NULL; 46 acl = NULL;
47 } else { 47 else
48 acl = ERR_PTR(size); 48 acl = ERR_PTR(size);
49 }
50 kfree(value); 49 kfree(value);
51 50
52 return acl; 51 return acl;