Commit f96880d1 authored by akpm@linux-foundation.org's avatar akpm@linux-foundation.org Committed by David Woodhouse

[MTD] [NAND] Fix compiler warning in Alauda driver

drivers/mtd/nand/alauda.c: In function 'alauda_bounce_read':
drivers/mtd/nand/alauda.c:412: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 4fc8a607
...@@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len, ...@@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len,
*retlen = len; *retlen = len;
while (len) { while (len) {
u8 oob[16]; u8 oob[16];
u32 byte = from & al->bytemask; size_t byte = from & al->bytemask;
size_t cplen = min(len, mtd->writesize - byte); size_t cplen = min(len, mtd->writesize - byte);
err = alauda_read_page(mtd, from, bounce_buf, oob, err = alauda_read_page(mtd, from, bounce_buf, oob,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment