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

Mark Kettenis kettenis at openbsd.org
Tue Apr 26 19:24:38 CEST 2022


ENODATA isn't part of POSIX.  Use EINVAL instead.

Signed-off-by: Mark Kettenis <kettenis at 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;
 	}
 
-- 
2.35.2



More information about the U-Boot mailing list