X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_summary.c;h=07fa52617fa9067865becc94fa384015ff9354aa;hp=6f3c7839fa6fb25556a9065bea3ccdfb1ea588b3;hb=refs%2Fheads%2Fclean-up;hpb=07353dd87a46afc753441028af8f5e8629b13bdc diff --git a/yaffs_summary.c b/yaffs_summary.c index 6f3c783..07fa526 100644 --- a/yaffs_summary.c +++ b/yaffs_summary.c @@ -183,7 +183,7 @@ int yaffs_summary_read(struct yaffs_dev *dev, u8 *buffer; u8 *sum_buffer = (u8 *)st; int n_bytes; - int chunk_id; + u32 chunk_id; int chunk_in_nand; int chunk_in_block; int result; @@ -191,10 +191,7 @@ int yaffs_summary_read(struct yaffs_dev *dev, struct yaffs_summary_header hdr; struct yaffs_block_info *bi = yaffs_get_block_info(dev, blk); int sum_bytes_per_chunk = dev->data_bytes_per_chunk - sizeof(hdr); - int sum_tags_bytes; - sum_tags_bytes = sizeof(struct yaffs_summary_tags) * - dev->chunks_per_summary; buffer = yaffs_get_temp_buffer(dev); n_bytes = sizeof(struct yaffs_summary_tags) * dev->chunks_per_summary; chunk_in_block = dev->chunks_per_summary; @@ -235,7 +232,6 @@ int yaffs_summary_read(struct yaffs_dev *dev, if (result == YAFFS_OK) { /* Verify header */ if (hdr.version != YAFFS_SUMMARY_VERSION || - hdr.block != blk || hdr.seq != bi->seq_number || hdr.sum != yaffs_summary_sum(dev)) result = YAFFS_FAIL; @@ -296,7 +292,7 @@ int yaffs_summary_fetch(struct yaffs_dev *dev, void yaffs_summary_gc(struct yaffs_dev *dev, int blk) { struct yaffs_block_info *bi = yaffs_get_block_info(dev, blk); - int i; + u32 i; if (!bi->has_summary) return;