yaffs: Fix incorrect incrementing in summary writing.
authorCharles Manning <cdhmanning@gmail.com>
Sun, 3 Apr 2011 19:13:28 +0000 (07:13 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Thu, 28 Apr 2011 04:07:41 +0000 (16:07 +1200)
Should only be incremented once.

yaffs_summary.c

index b9ef0d2..4cf1711 100644 (file)
@@ -119,8 +119,6 @@ static int yaffs_summary_write(struct yaffs_dev *dev, int blk)
                chunk_in_nand++;
                chunk_in_block++;
                tags.chunk_id++;
-
-               chunk_in_block++;
        } while (result == YAFFS_OK && n_bytes > 0);
        yaffs_release_temp_buffer(dev, buffer);