mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
UBI: fix return code in ubi_volume_read
Return -ENODEV instead of 0 when trying to read from a non existing volume. Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
c06326c73b
commit
0850301747
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue