tools/mkimage: avoid a linux specific return code
[openwrt/svn-archive/archive.git] / tools / mkimage / patches / 070-avoid_ENOMEDIUM.patch
1 --- a/common/image-fit.c
2 +++ b/common/image-fit.c
3 @@ -1557,7 +1557,7 @@ int fit_image_load(bootm_headers_t *imag
4 if (fit_image_get_data(fit, noffset, &buf, &size)) {
5 printf("Could not find %s subimage data!\n", prop_name);
6 bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
7 - return -ENOMEDIUM;
8 + return -EIO;
9 }
10 len = (ulong)size;
11