aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/doc2001plus.c
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2008-02-05 02:44:47 -0500
committerDavid Woodhouse <dwmw2@infradead.org>2008-02-07 05:34:36 -0500
commit53fb84a0695ffeeeadf8ae92db28cbccf5325531 (patch)
treed573cd02754704e0674821d759e39e9c7708eead /drivers/mtd/devices/doc2001plus.c
parentd5476689afd48e71395602698409e9f48cbba413 (diff)
[MTD] [DOC200x] eccbuf is statically defined and always evaluate to true
Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Acked-by: Joern Engel <joern@logfs.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/devices/doc2001plus.c')
-rw-r--r--drivers/mtd/devices/doc2001plus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/doc2001plus.c b/drivers/mtd/devices/doc2001plus.c
index 2b30b587c6e8..83be3461658f 100644
--- a/drivers/mtd/devices/doc2001plus.c
+++ b/drivers/mtd/devices/doc2001plus.c
@@ -748,7 +748,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
748 WriteDOC(DoC_GetDataOffset(mtd, &fto), docptr, Mplus_FlashCmd); 748 WriteDOC(DoC_GetDataOffset(mtd, &fto), docptr, Mplus_FlashCmd);
749 749
750 /* On interleaved devices the flags for 2nd half 512 are before data */ 750 /* On interleaved devices the flags for 2nd half 512 are before data */
751 if (eccbuf && before) 751 if (before)
752 fto -= 2; 752 fto -= 2;
753 753
754 /* issue the Serial Data In command to initial the Page Program process */ 754 /* issue the Serial Data In command to initial the Page Program process */