[PATCH] tools: mkimage: Avoid ENODATA in host tools

ENODATA isn't part of POSIX. Use EINVAL instead.
Signed-off-by: Mark Kettenis kettenis@openbsd.org --- tools/image-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/image-host.c b/tools/image-host.c index ab6f756cf1..698adfb3e1 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -1205,7 +1205,7 @@ int fit_pre_load_data(const char *keydir, void *keydest, void *fit) if (!key_name) printf("The property key-name is missing in the node %s\n", IMAGE_PRE_LOAD_PATH); - ret = -ENODATA; + ret = -EINVAL; goto out; }

On Tue, Apr 26, 2022 at 07:24:38PM +0200, Mark Kettenis wrote:
ENODATA isn't part of POSIX. Use EINVAL instead.
Signed-off-by: Mark Kettenis kettenis@openbsd.org
Fixes: 6e052d1cbafb ("mkimage: add public key for image pre-load stage") Reviewed-by: Tom Rini trini@konsulko.com

On Tue, Apr 26, 2022 at 07:24:38PM +0200, Mark Kettenis wrote:
ENODATA isn't part of POSIX. Use EINVAL instead.
Signed-off-by: Mark Kettenis kettenis@openbsd.org Reviewed-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
participants (2)
-
Mark Kettenis
-
Tom Rini