aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2013-10-31 07:20:42 -0400
committerChris Mason <chris.mason@fusionio.com>2013-11-11 22:12:40 -0500
commitf570e757b54ca6eceabc9b19a6342f14e836c196 (patch)
treef67539b65cfa6d2d7eb72398a45a3011ac6d996d /fs/btrfs/disk-io.c
parent678712545b62715a6c867471320ff5f60a521f3a (diff)
btrfs: Remove useless variable in write_ctree_super()
The function write_ctree_super() in disk-io.c uses variable ret to return the result of function write_all_supers(). Since, this variable serves no purpose, hence the patch removes it and returns the call of the called function. Reviewed-by: Zach Brown <zab@redhat.com> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 77fa2d99252f..4c4ed0bb3da1 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3440,10 +3440,7 @@ static int write_all_supers(struct btrfs_root *root, int max_mirrors)
3440int write_ctree_super(struct btrfs_trans_handle *trans, 3440int write_ctree_super(struct btrfs_trans_handle *trans,
3441 struct btrfs_root *root, int max_mirrors) 3441 struct btrfs_root *root, int max_mirrors)
3442{ 3442{
3443 int ret; 3443 return write_all_supers(root, max_mirrors);
3444
3445 ret = write_all_supers(root, max_mirrors);
3446 return ret;
3447} 3444}
3448 3445
3449/* Drop a fs root from the radix tree and free it. */ 3446/* Drop a fs root from the radix tree and free it. */