X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_summary.c;h=50a6919aa97a6116dfcbdb34c0cbec6822f9affe;hp=025096316494cf1f708d869132d5e84c74ea4b58;hb=a25e4d92631bbb348f600e7c2edacf5603b11c3e;hpb=21b2dedaa32ab309f6d1daec966528b7586bd207 diff --git a/yaffs_summary.c b/yaffs_summary.c index 0250963..50a6919 100644 --- a/yaffs_summary.c +++ b/yaffs_summary.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -183,7 +182,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 +190,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; @@ -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;