Explorar el Código

Merge branch 'master' of git://git.denx.de/u-boot-ubi

Wolfgang Denk hace 16 años
padre
commit
5af210c2ed
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      common/cmd_ubi.c

+ 1 - 1
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",