From 625d933eddc9aa3137ab6cc31f54a2f3404d937a Mon Sep 17 00:00:00 2001 From: AKASHI Takahiro Date: Wed, 16 Feb 2022 10:49:51 +0900 Subject: [PATCH] tools: mkeficapsule: remove duplicated code That code is mistakenly duplicated due to copy-and-paste error. Just remove it. Fixes: CID 348360 Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- tools/mkeficapsule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c index f7590e482f..c118335b93 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.39.5