mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00
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 <Manish.Badarkhe@arm.com> Change-Id: Ie66f7e3cc82dd443da0b75d55adf3ae7e15b5f99
This commit is contained in:
parent
742d0e6ef3
commit
800ba70b38
1 changed files with 3 additions and 4 deletions
|
@ -150,8 +150,7 @@ exit:
|
||||||
* of trust.
|
* of trust.
|
||||||
*/
|
*/
|
||||||
static int load_auth_image_recursive(unsigned int image_id,
|
static int load_auth_image_recursive(unsigned int image_id,
|
||||||
image_info_t *image_data,
|
image_info_t *image_data)
|
||||||
int is_parent_image)
|
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
unsigned int parent_id;
|
unsigned int parent_id;
|
||||||
|
@ -159,7 +158,7 @@ static int load_auth_image_recursive(unsigned int image_id,
|
||||||
/* Use recursion to authenticate parent images */
|
/* Use recursion to authenticate parent images */
|
||||||
rc = auth_mod_get_parent_id(image_id, &parent_id);
|
rc = auth_mod_get_parent_id(image_id, &parent_id);
|
||||||
if (rc == 0) {
|
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) {
|
if (rc != 0) {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -193,7 +192,7 @@ static int load_auth_image_internal(unsigned int image_id,
|
||||||
{
|
{
|
||||||
#if TRUSTED_BOARD_BOOT
|
#if TRUSTED_BOARD_BOOT
|
||||||
if (dyn_is_auth_disabled() == 0) {
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue