[PATCH v4 04/16] keytoc: remove duplicate __ENV__ check
Sascha Hauer
s.hauer at pengutronix.de
Fri Sep 13 00:59:12 PDT 2024
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
scripts/keytoc.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/scripts/keytoc.c b/scripts/keytoc.c
index b140160688..ecb33cbe47 100644
--- a/scripts/keytoc.c
+++ b/scripts/keytoc.c
@@ -664,17 +664,6 @@ int main(int argc, char *argv[])
*path = 0;
path++;
- if (!strncmp(path, "__ENV__", 7)) {
- const char *orig_path = path;
-
- path = getenv(orig_path + 7);
- if (!path) {
- fprintf(stderr, "%s doesn't contain a path\n",
- orig_path + 7);
- exit(1);
- }
- }
-
ret = gen_key(keyname, path);
if (ret)
exit(1);
--
2.39.2
More information about the barebox
mailing list