Merge branch 'master' of git://git.denx.de/u-boot-ubi
authorWolfgang Denk <wd@denx.de>
Wed, 20 May 2009 20:42:04 +0000 (22:42 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 20 May 2009 20:42:04 +0000 (22:42 +0200)
common/cmd_ubi.c

index 02a2e55..64a7307 100644 (file)
@@ -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",