From patchwork Mon Sep 19 11:06:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: checkfs: remove unused code Date: Mon, 19 Sep 2011 01:06:44 -0000 From: Andy Shevchenko X-Patchwork-Id: 115378 Message-Id: <19648e848664f51bece3ebdf41d768f69b0b6fd2.1316430185.git.andriy.shevchenko@linux.intel.com> To: Artem Bityutskiy , linux-mtd@lists.infradead.org Cc: Andy Shevchenko 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){