mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
[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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
4fc8a60786
commit
f96880d1e8
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue