diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/alauda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/alauda.c b/drivers/mtd/nand/alauda.c index 2c29854b4241..257937cd99bf 100644 --- a/drivers/mtd/nand/alauda.c +++ b/drivers/mtd/nand/alauda.c | |||
@@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
408 | *retlen = len; | 408 | *retlen = len; |
409 | while (len) { | 409 | while (len) { |
410 | u8 oob[16]; | 410 | u8 oob[16]; |
411 | u32 byte = from & al->bytemask; | 411 | size_t byte = from & al->bytemask; |
412 | size_t cplen = min(len, mtd->writesize - byte); | 412 | size_t cplen = min(len, mtd->writesize - byte); |
413 | 413 | ||
414 | err = alauda_read_page(mtd, from, bounce_buf, oob, | 414 | err = alauda_read_page(mtd, from, bounce_buf, oob, |