From: Mark Kettenis Date: Tue, 26 Apr 2022 17:24:38 +0000 (+0200) Subject: tools: mkimage: Avoid ENODATA in host tools X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=616571804a01f032bc43fa4fdeb42f00cb90513c;p=u-boot.git 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 --- 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; }