From patchwork Mon Oct 10 08:40:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 118655 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E9CB2B70B2 for ; Mon, 10 Oct 2011 19:42:01 +1100 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RDBQR-0003uR-CA; Mon, 10 Oct 2011 08:41:31 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RDBQR-0002Pn-34; Mon, 10 Oct 2011 08:41:31 +0000 Received: from mga02.intel.com ([134.134.136.20]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RDBQN-0002On-S7 for linux-mtd@lists.infradead.org; Mon, 10 Oct 2011 08:41:28 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 10 Oct 2011 01:41:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="61640931" Received: from unknown (HELO smile) ([10.255.14.215]) by orsmga002.jf.intel.com with ESMTP; 10 Oct 2011 01:41:24 -0700 Received: from andy by smile with local (Exim 4.76) (envelope-from ) id 1RDBQ6-0004t9-6i; Mon, 10 Oct 2011 11:41:10 +0300 From: Andy Shevchenko To: Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCH resend] tests: checkfs: remove unused code Date: Mon, 10 Oct 2011 11:40:43 +0300 Message-Id: <61071344f543384c616680ba182ec98a02279210.1318235878.git.andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.7.6.3 In-Reply-To: References: X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20111010_044128_050281_B8E32AB5 X-CRM114-Status: GOOD ( 12.27 ) X-Spam-Score: -2.8 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [134.134.136.20 listed in list.dnswl.org] Cc: Andy Shevchenko X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org There are two variables which are not used anymore. Thos patch removes useless lines and suppresses gcc warnings. Signed-off-by: Andy Shevchenko --- tests/checkfs/checkfs.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/tests/checkfs/checkfs.c b/tests/checkfs/checkfs.c index 0e67626..3e4a6e2 100644 --- a/tests/checkfs/checkfs.c +++ b/tests/checkfs/checkfs.c @@ -566,22 +566,16 @@ int main(int argc, char **argv){ char filename[30]; short filenameCounter = 0; unsigned short counter; - unsigned short numberFiles; - char error = FALSE; short errorCnt = 0; time_t timep; char * time_string; unsigned int seed; - - numberFiles = MAX_NUM_FILES; - if(argc >= 1) { processCmdLine(argc, argv); } - /* First open MAX_NUM_FILES and make sure that the checksum is ok. Also make an intry into the logfile. @@ -629,7 +623,6 @@ int main(int argc, char **argv){ fclose(logfp); (void)sync(); - error = TRUE; errorCnt++; if(errorCnt > MaxErrAllowed){