summaryrefslogtreecommitdiff
path: root/yaffs_summary.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2011-03-31 18:39:19 +1300
committerCharles Manning <cdhmanning@gmail.com>2011-03-31 18:39:19 +1300
commit447f47497bcd9acf7e59823a4e43888356200dc9 (patch)
treed9d5d7daed4ec4c3619faf32f8eb5e6b17bbd42a /yaffs_summary.c
parent130d318b84dbf1556cfec92e3546960ba6a8d7a3 (diff)
yaffs: Clean ups on summary code
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_summary.c')
-rw-r--r--yaffs_summary.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaffs_summary.c b/yaffs_summary.c
index 2768f16..b9ef0d2 100644
--- a/yaffs_summary.c
+++ b/yaffs_summary.c
@@ -29,7 +29,7 @@
#include "yaffs_getblockinfo.h"
#include "yaffs_bitmap.h"
-/* Summary tags don't need the sequence number becase that is redundant. */
+/* Summary tags don't need the sequence number because that is redundant. */
struct yaffs_summary_tags {
unsigned obj_id;
unsigned chunk_id;
@@ -74,8 +74,8 @@ void yaffs_summary_deinit(struct yaffs_dev *dev)
{
kfree(dev->sum_tags);
dev->sum_tags = NULL;
- kfree(dev->sum_tags);
- dev->sum_tags = NULL;
+ kfree(dev->gc_sum_tags);
+ dev->gc_sum_tags = NULL;
dev->chunks_per_summary = 0;
}
@@ -96,7 +96,7 @@ static int yaffs_summary_write(struct yaffs_dev *dev, int blk)
memset(&tags, 0, sizeof(struct yaffs_ext_tags));
tags.obj_id = YAFFS_OBJECTID_SUMMARY;
tags.chunk_id = 1;
- chunk_in_block = dev-> chunks_per_summary;
+ chunk_in_block = dev->chunks_per_summary;
chunk_in_nand = dev->alloc_block * dev->param.chunks_per_block +
dev-> chunks_per_summary;
do {