Ver Fonte

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

Wolfgang Denk há 16 anos atrás
pai
commit
5af210c2ed
1 ficheiros alterados com 1 adições e 1 exclusões
  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",