mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
cmd_nand : fix compiler warning.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
2b2f43ed6a
commit
0a1e03bcad
@@ -350,10 +350,10 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
||||
} else if (s != NULL && !strcmp(s, ".oob")) {
|
||||
/* read out-of-band data */
|
||||
if (read)
|
||||
ret = nand->read_oob(nand, off, size, &size,
|
||||
ret = nand->read_oob(nand, off, size, (size_t *) &size,
|
||||
(u_char *) addr);
|
||||
else
|
||||
ret = nand->write_oob(nand, off, size, &size,
|
||||
ret = nand->write_oob(nand, off, size, (size_t *) &size,
|
||||
(u_char *) addr);
|
||||
} else {
|
||||
if (read)
|
||||
|
Reference in New Issue
Block a user