Skip to content

Commit

Permalink
[MTD] [NAND] Fix compiler warning in Alauda driver
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
akpm@linux-foundation.org authored and David Woodhouse committed Oct 13, 2007
1 parent 4fc8a60 commit f96880d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/alauda.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len,
*retlen = len;
while (len) {
u8 oob[16];
u32 byte = from & al->bytemask;
size_t byte = from & al->bytemask;
size_t cplen = min(len, mtd->writesize - byte);

err = alauda_read_page(mtd, from, bounce_buf, oob,
Expand Down

0 comments on commit f96880d

Please sign in to comment.