aboutsummaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-24 08:50:32 -0500
committerTom Rini <trini@konsulko.com>2021-03-17 12:50:19 -0400
commit29cbc4babf0a971986cccd73986908d1b8f07bda (patch)
tree13a3ae87570b7be5b8f0d1ba02ba159d1ec0a1d1 /include/image.h
parent30e76b755b2a52e74bf916716a83deaf775664bb (diff)
downloadu-boot-29cbc4babf0a971986cccd73986908d1b8f07bda.zip
u-boot-29cbc4babf0a971986cccd73986908d1b8f07bda.tar.gz
u-boot-29cbc4babf0a971986cccd73986908d1b8f07bda.tar.bz2
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 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 138c83d..b4b284d 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1158,7 +1158,7 @@ int fit_image_check_comp(const void *fit, int noffset, uint8_t comp);
* @fit: pointer to the FIT format image header
* @return 0 if OK, -ENOEXEC if not an FDT file, -EINVAL if the full FDT check
* failed (e.g. due to bad structure), -ENOMSG if the description is
- * missing, -ENODATA if the timestamp is missing, -ENOENT if the /images
+ * missing, -EBADMSG if the timestamp is missing, -ENOENT if the /images
* path is missing
*/
int fit_check_format(const void *fit, ulong size);