diff options
author | Stefan Roese <sr@denx.de> | 2008-12-02 09:53:47 (GMT) |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-12-09 09:07:41 (GMT) |
commit | 2d2e05727fe4013f807ffa814dff0e75259a1db4 (patch) | |
tree | 09b03c9f5f8f1aaee848c91225fe4d2a6d0b3934 /common/cmd_ubi.c | |
parent | 2ee951ba2ac9874d2a93d52e7a187d3184be937e (diff) | |
download | u-boot-fsl-qoriq-2d2e05727fe4013f807ffa814dff0e75259a1db4.tar.xz |
UBI: Fix size parsing in "ubi create"
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/cmd_ubi.c')
-rw-r--r-- | common/cmd_ubi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c index 495d71e..fd33a67 100644 --- a/common/cmd_ubi.c +++ b/common/cmd_ubi.c @@ -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 */ |