X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_tagscompat.c;h=818f72bbc64c17ea8f47cc61133289f3c386dff1;hp=7578075d9ac10a26dca7ff93a9e4d6735795c8a2;hb=b70ea39d4f2547564197afa8866b388301765583;hpb=d223baa0fa5644b48c2626f8d42b05ac45b1daf6 diff --git a/yaffs_tagscompat.c b/yaffs_tagscompat.c index 7578075..818f72b 100644 --- a/yaffs_tagscompat.c +++ b/yaffs_tagscompat.c @@ -151,7 +151,7 @@ static int yaffs_rd_chunk_nand(struct yaffs_dev *dev, int ret_val; struct yaffs_spare local_spare; - if (!spare && data) { + if (!spare) { /* If we don't have a real spare, then we use a local one. */ /* Need this for the calculation of the ecc */ spare = &local_spare; @@ -290,7 +290,7 @@ int yaffs_tags_compat_wr(struct yaffs_dev *dev, struct yaffs_tags tags; yaffs_spare_init(&spare); - + if (ext_tags->is_deleted) spare.page_status = 0; else {