* [PATCH] tools: mkimage: Avoid ENODATA in host tools
@ 2022-04-26 17:24 Mark Kettenis
2022-04-26 17:37 ` Tom Rini
2022-05-05 23:39 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Mark Kettenis @ 2022-04-26 17:24 UTC (permalink / raw)
To: u-boot; +Cc: philippe.reynes, sjg, trini, Mark Kettenis
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;
}
--
2.35.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: mkimage: Avoid ENODATA in host tools
2022-04-26 17:24 [PATCH] tools: mkimage: Avoid ENODATA in host tools Mark Kettenis
@ 2022-04-26 17:37 ` Tom Rini
2022-05-05 23:39 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-04-26 17:37 UTC (permalink / raw)
To: Mark Kettenis; +Cc: u-boot, philippe.reynes, sjg
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
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>
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: mkimage: Avoid ENODATA in host tools
2022-04-26 17:24 [PATCH] tools: mkimage: Avoid ENODATA in host tools Mark Kettenis
2022-04-26 17:37 ` Tom Rini
@ 2022-05-05 23:39 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-05-05 23:39 UTC (permalink / raw)
To: Mark Kettenis; +Cc: u-boot, philippe.reynes, sjg
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
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!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-05 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 17:24 [PATCH] tools: mkimage: Avoid ENODATA in host tools Mark Kettenis
2022-04-26 17:37 ` Tom Rini
2022-05-05 23:39 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.