changeset 150:ac649dc312cb

Fix forced erasure check logic
author charles
date Tue, 03 Oct 2006 03:25:57 +0100
parents 212486fd066b
children b9ba4e46d2e5
files yaffs_guts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -354,7 +354,7 @@ static int yaffs_WriteNewChunkWithTagsTo
 			 */
 			 
 #ifdef CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED
-			bi->skipErasedCheck = 1;
+			bi->skipErasedCheck = 0;
 #endif
 			if(!bi->skipErasedCheck){
 				erasedOk = yaffs_CheckChunkErased(dev, chunk);