diff options
Diffstat (limited to 'yaffs_guts.c')
-rw-r--r-- | yaffs_guts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaffs_guts.c b/yaffs_guts.c index f910f38..7e97a5f 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -431,9 +431,9 @@ static int yaffs_WriteNewChunkWithTagsToNAND(struct yaffs_DeviceStruct *dev, /* let's give it a try */ attempts++; -#ifdef CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED - bi->skipErasedCheck = 0; -#endif + if(dev->param.alwaysCheckErased) + bi->skipErasedCheck = 0; + if (!bi->skipErasedCheck) { erasedOk = yaffs_CheckChunkErased(dev, chunk); if (erasedOk != YAFFS_OK) { |