]> err.no Git - linux-2.6/blobdiff - drivers/mtd/devices/doc2001plus.c
[POWERPC] Use __always_inline for xchg* and cmpxchg*
[linux-2.6] / drivers / mtd / devices / doc2001plus.c
index 2b30b587c6e840c0e820a9a30aff74ba40f90f3c..83be3461658f22527a40ab1e57ec0efa503c8252 100644 (file)
@@ -748,7 +748,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
        WriteDOC(DoC_GetDataOffset(mtd, &fto), docptr, Mplus_FlashCmd);
 
        /* On interleaved devices the flags for 2nd half 512 are before data */
-       if (eccbuf && before)
+       if (before)
                fto -= 2;
 
        /* issue the Serial Data In command to initial the Page Program process */