diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-05-28 07:31:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-05-28 07:31:26 +0000 |
commit | 15dd4cdcd2c1ae4f5fb2ee52678724eccaa46021 (patch) | |
tree | 789842eedad6b065fd85fe7bca8c050218f4e42b /target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c | |
parent | 3f229c34150fe76cfd118d5c8923f074fa74fb78 (diff) | |
download | mtk-20170518-15dd4cdcd2c1ae4f5fb2ee52678724eccaa46021.zip mtk-20170518-15dd4cdcd2c1ae4f5fb2ee52678724eccaa46021.tar.gz mtk-20170518-15dd4cdcd2c1ae4f5fb2ee52678724eccaa46021.tar.bz2 |
nuke trailing whitespaces in the yaffs code
SVN-Revision: 11277
Diffstat (limited to 'target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c')
-rw-r--r-- | target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c index c33483c..4e25033 100644 --- a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c +++ b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_nand.c @@ -10,7 +10,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ - + const char *yaffs_nand_c_version = "$Id: yaffs_nand.c,v 1.7 2007-02-14 01:09:06 wookey Exp $"; @@ -25,9 +25,9 @@ int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND, { int result; yaffs_ExtendedTags localTags; - + int realignedChunkInNAND = chunkInNAND - dev->chunkOffset; - + /* If there are no tags provided, use local tags to get prioritised gc working */ if(!tags) tags = &localTags; @@ -39,14 +39,14 @@ int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND, result = yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(dev, realignedChunkInNAND, buffer, - tags); - if(tags && + tags); + if(tags && tags->eccResult > YAFFS_ECC_RESULT_NO_ERROR){ - + yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, chunkInNAND/dev->nChunksPerBlock); yaffs_HandleChunkError(dev,bi); } - + return result; } @@ -57,7 +57,7 @@ int yaffs_WriteChunkWithTagsToNAND(yaffs_Device * dev, { chunkInNAND -= dev->chunkOffset; - + if (tags) { tags->sequenceNumber = dev->sequenceNumber; tags->chunkUsed = 1; @@ -131,4 +131,4 @@ int yaffs_InitialiseNAND(struct yaffs_DeviceStruct *dev) } - + |