From: Thomas Meyer Date: Sat, 1 Jun 2013 09:45:35 +0000 (+0000) Subject: Btrfs: Cocci spatch "ptr_ret.spatch" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97a184fe818ceb12ce511d7add4be5ded85c8ba0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: Cocci spatch "ptr_ret.spatch" Signed-off-by: Thomas Meyer Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index b1446c0da154..c58bf19a8a48 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)