From 616571804a01f032bc43fa4fdeb42f00cb90513c Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 26 Apr 2022 19:24:38 +0200 Subject: [PATCH] tools: mkimage: Avoid ENODATA in host tools ENODATA isn't part of POSIX. Use EINVAL instead. Signed-off-by: Mark Kettenis Reviewed-by: Tom Rini --- 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 ab6f756..698adfb 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; } -- 2.7.4