Btrfs: Cocci spatch "ptr_ret.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Sat, 1 Jun 2013 09:45:35 +0000 (09:45 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:30:11 +0000 (11:30 -0400)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/volumes.c

index b1446c0da15475caba4eda4709060a2742a2972b..c58bf19a8a483d9ac900aed6bd18944e933b1e6b 100644 (file)
@@ -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)