[PATCH] tools: mkeficapsule: remove duplicated code
AKASHI Takahiro
takahiro.akashi at linaro.org
Wed Feb 16 02:49:51 CET 2022
That code is mistakenly duplicated due to copy-and-paste error.
Just remove it.
Fixes: CID 348360
Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
tools/mkeficapsule.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c
index f7590e482f10..c118335b93bd 100644
--- a/tools/mkeficapsule.c
+++ b/tools/mkeficapsule.c
@@ -210,8 +210,6 @@ static int create_auth_data(struct auth_context *ctx)
cert.size = file_size;
ret = read_bin_file(ctx->key_file, &key.data, &file_size);
- if (ret < 0)
- return -1;
if (ret < 0)
return -1;
if (file_size > UINT_MAX)
--
2.33.0
More information about the U-Boot
mailing list