summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 09:45:35 +0000
committerJosef Bacik <jbacik@fusionio.com>2013-06-14 11:30:11 -0400
commit97a184fe818ceb12ce511d7add4be5ded85c8ba0 (patch)
tree301875cb476e7e6c9059d73f35a395a81fe383a8 /fs/btrfs
parentb382a324b60f4923e9fc8e11f023e4f493c51318 (diff)
downloadop-kernel-dev-97a184fe818ceb12ce511d7add4be5ded85c8ba0.zip
op-kernel-dev-97a184fe818ceb12ce511d7add4be5ded85c8ba0.tar.gz
Btrfs: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/volumes.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index b1446c0..c58bf19 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -3283,10 +3283,7 @@ int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info)
}
tsk = kthread_run(balance_kthread, fs_info, "btrfs-balance");
- if (IS_ERR(tsk))
- return PTR_ERR(tsk);
-
- return 0;
+ return PTR_RET(tsk);
}
int btrfs_recover_balance(struct btrfs_fs_info *fs_info)
OpenPOWER on IntegriCloud