Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84307
b: refs/heads/master
c: 53fb84a
h: refs/heads/master
i:
  84305: 72a3409
  84303: 7d094d7
v: v3
  • Loading branch information
Samuel Tardieu authored and David Woodhouse committed Feb 7, 2008
1 parent ab53ab3 commit 564ba23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5476689afd48e71395602698409e9f48cbba413
refs/heads/master: 53fb84a0695ffeeeadf8ae92db28cbccf5325531
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/devices/doc2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/devices/doc2001plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 564ba23

Please sign in to comment.