From patchwork Sat Aug 4 07:46:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 1273081 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0D749DF24C for ; Sat, 4 Aug 2012 07:47:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205Ab2HDHq4 (ORCPT ); Sat, 4 Aug 2012 03:46:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:45258 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750695Ab2HDHqy (ORCPT ); Sat, 4 Aug 2012 03:46:54 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 04 Aug 2012 00:46:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="193141300" Received: from unknown (HELO wfg-t420.sh.intel.com) ([10.255.20.172]) by fmsmga001.fm.intel.com with ESMTP; 04 Aug 2012 00:46:51 -0700 Received: from wfg by wfg-t420.sh.intel.com with local (Exim 4.77) (envelope-from ) id 1SxZ4R-0003kj-Ht; Sat, 04 Aug 2012 15:46:47 +0800 Date: Sat, 4 Aug 2012 15:46:47 +0800 From: Fengguang Wu To: Josef Bacik Cc: Chris Mason , BTRFS FILE SYSTEM , LKML Subject: [PATCH] btrfs: Use PTR_RET in btrfs_resume_balance_async() Message-ID: <20120804074647.GA14393@localhost> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org No behavior change, code generated by: scripts/coccicheck/api/ptr_ret.cocci Signed-off-by: Fengguang Wu --- fs/btrfs/volumes.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux.orig/fs/btrfs/volumes.c 2012-08-04 15:33:02.038203882 +0800 +++ linux/fs/btrfs/volumes.c 2012-08-04 15:33:03.502203915 +0800 @@ -2886,10 +2886,7 @@ int btrfs_resume_balance_async(struct bt } 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)