UBI: Fix size parsing in "ubi create"

Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Stefan Roese 2008-12-02 10:53:47 +01:00
parent 2ee951ba2a
commit 2d2e05727f

View File

@ -546,7 +546,7 @@ static int do_ubi(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
}
/* E.g., create volume size */
if (argc == 4) {
addr = simple_strtoul(argv[3], NULL, 16);
size = simple_strtoul(argv[3], NULL, 16);
argc--;
}
/* Use maximum available size */