summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2008-12-02 10:53:47 +0100
committerStefan Roese <sr@denx.de>2008-12-09 10:07:41 +0100
commit2d2e05727fe4013f807ffa814dff0e75259a1db4 (patch)
tree09b03c9f5f8f1aaee848c91225fe4d2a6d0b3934 /common
parent2ee951ba2ac9874d2a93d52e7a187d3184be937e (diff)
downloadu-boot-imx-2d2e05727fe4013f807ffa814dff0e75259a1db4.zip
u-boot-imx-2d2e05727fe4013f807ffa814dff0e75259a1db4.tar.gz
u-boot-imx-2d2e05727fe4013f807ffa814dff0e75259a1db4.tar.bz2
UBI: Fix size parsing in "ubi create"
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ubi.c2
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 */