From 800ba70b3839f8d7cb596204a950d6a0f917415c Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Thu, 10 Oct 2024 12:39:37 +0100 Subject: [PATCH] refactor(bl): remove un-necessary variable Remove un-necessary variable 'is_parent_image' used in the 'load_auth_image_recursive' function. Signed-off-by: Manish V Badarkhe Change-Id: Ie66f7e3cc82dd443da0b75d55adf3ae7e15b5f99 --- common/bl_common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/bl_common.c b/common/bl_common.c index 2a9f32fe2..2c452aa8b 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -150,8 +150,7 @@ exit: * of trust. */ static int load_auth_image_recursive(unsigned int image_id, - image_info_t *image_data, - int is_parent_image) + image_info_t *image_data) { int rc; unsigned int parent_id; @@ -159,7 +158,7 @@ static int load_auth_image_recursive(unsigned int image_id, /* Use recursion to authenticate parent images */ rc = auth_mod_get_parent_id(image_id, &parent_id); if (rc == 0) { - rc = load_auth_image_recursive(parent_id, image_data, 1); + rc = load_auth_image_recursive(parent_id, image_data); if (rc != 0) { return rc; } @@ -193,7 +192,7 @@ static int load_auth_image_internal(unsigned int image_id, { #if TRUSTED_BOARD_BOOT if (dyn_is_auth_disabled() == 0) { - return load_auth_image_recursive(image_id, image_data, 0); + return load_auth_image_recursive(image_id, image_data); } #endif