From 20f679f5b93eeb5cedbf5153605ed40e5d25e042 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 8 Sep 2023 11:29:01 +0200 Subject: [PATCH] Remove dead code reported by coverity scan Signed-off-by: Jakub Jelen --- src/eng_back.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/eng_back.c b/src/eng_back.c index cc9edecd..b57ef520 100644 --- a/src/eng_back.c +++ b/src/eng_back.c @@ -499,14 +499,8 @@ static void *ctx_try_load_object(ENGINE_CTX *ctx, if (matched_count == 0) { if (match_tok) { - if (found_slot) { - ctx_log(ctx, 0, "The %s was not found on token %s\n", - object_typestr, found_slot->token->label[0] ? - found_slot->token->label : "no label"); - } else { - ctx_log(ctx, 0, "No matching initialized token was found for %s\n", - object_typestr); - } + ctx_log(ctx, 0, "No matching initialized token was found for %s\n", + object_typestr); goto error; }