|
@@ -632,7 +632,7 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,
|
|
|
len = ((from | 0x1ff) + 1) - from;
|
|
|
|
|
|
/* The ECC will not be calculated correctly if less than 512 is read */
|
|
|
- if (len != 0x200 && eccbuf)
|
|
|
+ if (len != 0x200)
|
|
|
printk(KERN_WARNING
|
|
|
"ECC needs a full sector read (adr: %lx size %lx)\n",
|
|
|
(long) from, (long) len);
|
|
@@ -896,7 +896,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
|
|
|
/* Let the caller know we completed it */
|
|
|
*retlen += len;
|
|
|
|
|
|
- if (eccbuf) {
|
|
|
+ {
|
|
|
unsigned char x[8];
|
|
|
size_t dummy;
|
|
|
int ret;
|