From: AKASHI Takahiro Date: Wed, 16 Feb 2022 01:49:51 +0000 (+0900) Subject: tools: mkeficapsule: remove duplicated code X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=625d933eddc9aa3137ab6cc31f54a2f3404d937a;p=u-boot.git 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 --- 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)