[PATCH 1/1] tools: mkefitools: remove duplicate test

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Feb 18 21:26:33 CET 2022


This resolves Coverity CID 348360.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 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.34.1



More information about the U-Boot mailing list