From patchwork Thu Aug 7 02:35:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gui Hecheng X-Patchwork-Id: 4689071 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6D25C9F373 for ; Thu, 7 Aug 2014 02:36:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C8AE2018E for ; Thu, 7 Aug 2014 02:36:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C04C3201DE for ; Thu, 7 Aug 2014 02:36:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754737AbaHGCgT (ORCPT ); Wed, 6 Aug 2014 22:36:19 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:7817 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754623AbaHGCgR (ORCPT ); Wed, 6 Aug 2014 22:36:17 -0400 X-IronPort-AV: E=Sophos;i="5.04,279,1406563200"; d="scan'208";a="34288723" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 07 Aug 2014 10:33:26 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id s772aDiS005033 for ; Thu, 7 Aug 2014 10:36:14 +0800 Received: from localhost.localdomain (10.167.226.111) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 7 Aug 2014 10:36:26 +0800 From: Gui Hecheng To: CC: Gui Hecheng Subject: [PATCH 2/3] btrfs-progs: remove unused parameter in rollback for btrfs-convert Date: Thu, 7 Aug 2014 10:35:58 +0800 Message-ID: <1407378959-23728-2-git-send-email-guihc.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1407378959-23728-1-git-send-email-guihc.fnst@cn.fujitsu.com> References: <1407378959-23728-1-git-send-email-guihc.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.111] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The @force parameter for function @do_rollback is never checked or used, remove it. Signed-off-by: Gui Hecheng --- btrfs-convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfs-convert.c b/btrfs-convert.c index 2ea6a09..21bbc70 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -2376,7 +2376,7 @@ fail: return -1; } -static int do_rollback(const char *devname, int force) +static int do_rollback(const char *devname) { int fd = -1; int ret; @@ -2754,7 +2754,7 @@ int main(int argc, char *argv[]) } if (rollback) { - ret = do_rollback(file, 0); + ret = do_rollback(file); } else { ret = do_convert(file, datacsum, packing, noxattr); }