Compilation clean up
[yaffs2.git] / direct / test-framework / yaffs_fileem2k.c
index b9a00f1be619eb18245967fde2682dc1060c8e66..8da77dc6ff8c7990f36773267ef96f32e459c508 100644 (file)
@@ -93,7 +93,6 @@ static int nops_so_far;
 
 int ops_multiplier;
 
-
 static void yflash2_MaybePowerFail(unsigned int nand_chunk, int failPoint)
 {
 
@@ -110,12 +109,6 @@ static void yflash2_MaybePowerFail(unsigned int nand_chunk, int failPoint)
   }
 }
 
-
-
-
-
-static u8 localBuffer[PAGE_SIZE];
-
 static char *NToName(char *buf,int n)
 {
        sprintf(buf,"emfile-2k-%d",n);
@@ -277,7 +270,7 @@ static int yflash2_ReadChunk(struct yaffs_dev *dev, int nand_chunk,
 
 static int yflash2_EraseBlock(struct yaffs_dev *dev, int block_no)
 {
-       int i;
+       u32 i;
        int h;
 
        CheckInit();
@@ -292,7 +285,6 @@ static int yflash2_EraseBlock(struct yaffs_dev *dev, int block_no)
 
                u8 pg[PAGE_SIZE];
                int syz = PAGE_SIZE;
-               int pos;
 
                memset(pg,0xff,syz);
 
@@ -303,7 +295,6 @@ static int yflash2_EraseBlock(struct yaffs_dev *dev, int block_no)
                {
                        write(h,pg,PAGE_SIZE);
                }
-               pos = lseek(h, 0,SEEK_CUR);
 
                return YAFFS_OK;
        }