mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
fix(guid-partition): initialise the mbr_entry variable
The compiler complains that it may be used unitialised. Give it some confidence that won't be the case. Change-Id: I14bddd48e4b205121415025175f157b92a89aa26 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
This commit is contained in:
parent
90f9c9bef5
commit
ec48d52e78
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved.
|
* Copyright (c) 2016-2025, Arm Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -399,7 +399,7 @@ static int load_primary_gpt(uintptr_t image_handle, unsigned int first_lba)
|
||||||
int load_partition_table(unsigned int image_id)
|
int load_partition_table(unsigned int image_id)
|
||||||
{
|
{
|
||||||
uintptr_t dev_handle, image_handle, image_spec = 0;
|
uintptr_t dev_handle, image_handle, image_spec = 0;
|
||||||
mbr_entry_t mbr_entry;
|
mbr_entry_t mbr_entry = {0};
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
result = plat_get_image_source(image_id, &dev_handle, &image_spec);
|
result = plat_get_image_source(image_id, &dev_handle, &image_spec);
|
||||||
|
|
Loading…
Add table
Reference in a new issue