mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
image: Use ENOENT instead of ENOMEDIUM for better compatibility
This error may not be defined on some platforms such as MacOS so host compilation will fail. Use one of the more common errors instead. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Andreas Bießmann <andreas.devel@googlemail.com> Tested-by: Lubomir Popov <lpopov@mm-sol.com>
This commit is contained in:
parent
dfdb3d37dd
commit
2f99807125
1 changed files with 1 additions and 1 deletions
|
@ -1557,7 +1557,7 @@ int fit_image_load(bootm_headers_t *images, const char *prop_name, ulong addr,
|
||||||
if (fit_image_get_data(fit, noffset, &buf, &size)) {
|
if (fit_image_get_data(fit, noffset, &buf, &size)) {
|
||||||
printf("Could not find %s subimage data!\n", prop_name);
|
printf("Could not find %s subimage data!\n", prop_name);
|
||||||
bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
|
bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
|
||||||
return -ENOMEDIUM;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
len = (ulong)size;
|
len = (ulong)size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue