Skip to content
Snippets Groups Projects
Commit 2f998071 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
Tested-by: default avatarLubomir Popov <lpopov@mm-sol.com>
parent dfdb3d37
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
printf("Could not find %s subimage data!\n", prop_name);
bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
return -ENOMEDIUM;
return -ENOENT;
}
len = (ulong)size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment