Merge branch 'master' of git://git.denx.de/u-boot-ubi
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 @@
 	}
 	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",