]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_nand.c
uli526x: Fix multiple differ in signedness and parentheses around comparison
[karo-tx-uboot.git] / common / cmd_nand.c
index b248a2cdb2c822f67c5c4e604669b4155bd96e5a..8d6c959584f64de348c3fc0d5276f186c7c08ebc 100644 (file)
@@ -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)