]> www.infradead.org Git - mtd-utils.git/commitdiff
tests: checkfs: remove unused code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Oct 2011 08:40:43 +0000 (11:40 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 14 Oct 2011 09:20:02 +0000 (12:20 +0300)
There are two variables which are not used anymore. Thos patch removes useless
lines and suppresses gcc warnings.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
tests/checkfs/checkfs.c

index 0e67626085135cbaffe8f65528b5ffe17bfc929f..3e4a6e2a5e41db0889a3d644e098e910ac2aab01 100644 (file)
@@ -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){