From patchwork Mon Sep 19 11:06:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 115378 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 48B4BB70B9 for ; Tue, 20 Sep 2011 03:59:15 +1000 (EST) Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R5dRK-0007fD-Pc; Mon, 19 Sep 2011 12:59:14 +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 1R5bhD-0001Jw-Vy; Mon, 19 Sep 2011 11:07:31 +0000 Received: from mga03.intel.com ([143.182.124.21]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R5bhB-0001Je-Ft for linux-mtd@lists.infradead.org; Mon, 19 Sep 2011 11:07:30 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 19 Sep 2011 04:07:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.68,404,1312182000"; d="scan'208";a="50371876" Received: from unknown (HELO smile) ([10.255.14.174]) by azsmga001.ch.intel.com with ESMTP; 19 Sep 2011 04:07:26 -0700 Received: from andy by smile with local (Exim 4.76) (envelope-from ) id 1R5bgu-0002Nd-15; Mon, 19 Sep 2011 14:07:12 +0300 From: Andy Shevchenko To: Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCH] tests: checkfs: remove unused code Date: Mon, 19 Sep 2011 14:06:44 +0300 Message-Id: <19648e848664f51bece3ebdf41d768f69b0b6fd2.1316430185.git.andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: References: X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110919_070729_684453_708F2866 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. 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 ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [143.182.124.21 listed in list.dnswl.org] -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 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){