X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_mtdif.c;h=13cfdd9dfffb6ed0a5b3354a6bfaee15b3521010;hp=9f2b3ab7c4c19b4717e07f06c9ddf6a8f4470e40;hb=56f93d87556bc0802ea8d5b080d9e8265bc4e9c1;hpb=9f361d87ca8c3d331ed1a4ffea53dd9a8d55ee88 diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 9f2b3ab..13cfdd9 100644 --- a/yaffs_mtdif.c +++ b/yaffs_mtdif.c @@ -14,11 +14,10 @@ */ const char *yaffs_mtdif_c_version = - "$Id: yaffs_mtdif.c,v 1.10 2005-08-11 01:07:43 marty Exp $"; + "$Id: yaffs_mtdif.c,v 1.12 2005-09-20 23:14:14 charles Exp $"; #include "yportenv.h" -#ifdef CONFIG_YAFFS_YAFFS1 #include "yaffs_mtdif.h" @@ -90,7 +89,8 @@ int nandmtd_ReadChunkFromNAND(yaffs_Device * dev, int chunkInNAND, __u8 * data, __u8 *spareAsBytes = (__u8 *) spare; if (data && spare) { - if (dev->useNANDECC) { /* Careful, this call adds 2 ints */ + if (dev->useNANDECC) { + /* Careful, this call adds 2 ints */ /* to the end of the spare data. Calling function */ /* should allocate enough memory for spare, */ /* i.e. [YAFFS_BYTES_PER_SPARE+2*sizeof(int)]. */ @@ -155,4 +155,3 @@ int nandmtd_InitialiseNAND(yaffs_Device * dev) return YAFFS_OK; } -#endif /* CONFIG_YAFFS_YAFFS1 */