summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-05-20 22:42:04 +0200
committerWolfgang Denk <wd@denx.de>2009-05-20 22:42:04 +0200
commit5af210c2ed5bc38e2d059d512ca4e46e81221af5 (patch)
treec11a59cda00d9b6f4c09ef824fed1f87018a3c7d /common
parentebf8619584a5546f4e3bdebd2c44d3400f8dcf30 (diff)
parent0850301747228a3327f2815a85284d26ade3de95 (diff)
downloadu-boot-imx-5af210c2ed5bc38e2d059d512ca4e46e81221af5.zip
u-boot-imx-5af210c2ed5bc38e2d059d512ca4e46e81221af5.tar.gz
u-boot-imx-5af210c2ed5bc38e2d059d512ca4e46e81221af5.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-ubi
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 02a2e55..64a7307 100644
--- a/common/cmd_ubi.c
+++ b/common/cmd_ubi.c
@@ -327,7 +327,7 @@ static int ubi_volume_read(char *volume, char *buf, size_t size)
}
if (i == ubi->vtbl_slots) {
printf("%s volume not found\n", volume);
- return 0;
+ return -ENODEV;
}
printf("read %i bytes from volume %d to %x(buf address)\n",