Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27910
b: refs/heads/master
c: 7e9a0bb
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David Woodhouse committed May 30, 2006
1 parent d367a97 commit 36ea940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 098a19811b483f8e047d8292641c88e776452de0
refs/heads/master: 7e9a0bb00c4ccb7a05c41b2728758d5bb3dd54fc
8 changes: 4 additions & 4 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob,
size_t bytes;

for(; free->length && len; free++, len -= bytes) {
bytes = min(len, free->length);
bytes = min_t(size_t, len, free->length);

memcpy(oob, chip->oob_poi + free->offset, bytes);
oob += bytes;
Expand Down Expand Up @@ -1100,8 +1100,8 @@ static int nand_do_read_oob(struct mtd_info *mtd, loff_t from,
int direct, bytes, readlen = ops->len;
uint8_t *bufpoi, *buf = ops->oobbuf;

DEBUG(MTD_DEBUG_LEVEL3, "nand_read_oob: from = 0x%08x, len = %i\n",
(unsigned int)from, (int)len);
DEBUG(MTD_DEBUG_LEVEL3, "nand_read_oob: from = 0x%08Lx, len = %i\n",
(unsigned long long)from, readlen);

chipnr = (int)(from >> chip->chip_shift);
chip->select_chip(mtd, chipnr);
Expand Down Expand Up @@ -1414,7 +1414,7 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
size_t bytes;

for(; free->length && len; free++, len -= bytes) {
bytes = min(len, free->length);
bytes = min_t(size_t, len, free->length);
memcpy(chip->oob_poi + free->offset, oob, bytes);
oob += bytes;
}
Expand Down

0 comments on commit 36ea940

Please sign in to comment.