summaryrefslogtreecommitdiff
path: root/yaffs_nand.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-04-27 14:06:38 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-04-27 14:08:44 +1200
commit4778ade2698a2de536594ee9cbf32db58346b59c (patch)
tree7d4472f8c48c57955bfecb6d57e0e890bfc010f6 /yaffs_nand.c
parent0e574e5047f4376cc2fa22962c7f2df012a089a9 (diff)
yaffs: Integrate Android tree differences
This brings in Android changes, and a few more clean-ups to normalise with the Android tree. More to follow maybe. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_nand.c')
-rw-r--r--yaffs_nand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaffs_nand.c b/yaffs_nand.c
index cb2a162..6964ad1 100644
--- a/yaffs_nand.c
+++ b/yaffs_nand.c
@@ -43,7 +43,8 @@ int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
if (tags &&
tags->eccResult > YAFFS_ECC_RESULT_NO_ERROR) {
- yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, chunkInNAND/dev->param.nChunksPerBlock);
+ yaffs_BlockInfo *bi;
+ bi = yaffs_GetBlockInfo(dev, chunkInNAND/dev->param.nChunksPerBlock);
yaffs_HandleChunkError(dev, bi);
}