diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-24 16:50:32 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-17 19:50:19 +0300 |
commit | 29cbc4babf0a971986cccd73986908d1b8f07bda (patch) | |
tree | 13a3ae87570b7be5b8f0d1ba02ba159d1ec0a1d1 /common/image-fit.c | |
parent | 30e76b755b2a52e74bf916716a83deaf775664bb (diff) | |
download | u-boot-29cbc4babf0a971986cccd73986908d1b8f07bda.tar.xz |
image: Avoid -ENODATA in host tools
Unfortunately -ENODATA is not available in OpenBSD. Use -EBADMSG
instead, to indicate a missing timestamp.
Fixes: c5819701a3d image: Adjust the workings of fit_check_format()
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 28b3d2b191..94501b1071 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1651,7 +1651,7 @@ int fit_check_format(const void *fit, ulong size) /* mandatory / node 'timestamp' property */ if (!fdt_getprop(fit, 0, FIT_TIMESTAMP_PROP, NULL)) { log_debug("Wrong FIT format: no timestamp\n"); - return -ENODATA; + return -EBADMSG; } } |