mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00
chore(xilinx): propagate error code
Propagate error instead of making own error code. Change-Id: I9300ad342e98ca0e730b091510d9d62747b81a5f Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
ea453871ef
commit
c5c108b1aa
1 changed files with 2 additions and 3 deletions
|
@ -37,16 +37,15 @@ int32_t is_valid_dtb(void *fdt)
|
|||
{
|
||||
int32_t ret = 0;
|
||||
|
||||
if (fdt_check_header(fdt) != 0) {
|
||||
ret = fdt_check_header(fdt);
|
||||
if (ret != 0) {
|
||||
ERROR("Can't read DT at %p\n", fdt);
|
||||
ret = -FDT_ERR_NOTFOUND;
|
||||
goto error;
|
||||
}
|
||||
|
||||
ret = fdt_open_into(fdt, fdt, XILINX_OF_BOARD_DTB_MAX_SIZE);
|
||||
if (ret < 0) {
|
||||
ERROR("Invalid Device Tree at %p: error %d\n", fdt, ret);
|
||||
ret = -FDT_ERR_NOTFOUND;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue