]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: mkimage: Avoid ENODATA in host tools
authorMark Kettenis <kettenis@openbsd.org>
Tue, 26 Apr 2022 17:24:38 +0000 (19:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 23:37:11 +0000 (19:37 -0400)
ENODATA isn't part of POSIX.  Use EINVAL instead.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/image-host.c

index ab6f756cf1bffd5735d3675bb91ec90b20babcfb..698adfb3e1d4db1372778a978bb8d5760ce9f10b 100644 (file)
@@ -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;
        }