EmbeddedPkg: AndroidBootApp: fix clang compilation
Address an incorrect function prototype (using ; instead of ,) in AndroidBootImg.h. Also restructure code slightly to avoid a "may be used uninitialized" warning. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
@ -33,8 +33,8 @@ EFI_STATUS
|
|||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB) (
|
(EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB) (
|
||||||
IN EFI_PHYSICAL_ADDRESS OrigDtbBase;
|
IN EFI_PHYSICAL_ADDRESS OrigDtbBase,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *NewDtbBase;
|
OUT EFI_PHYSICAL_ADDRESS *NewDtbBase
|
||||||
);
|
);
|
||||||
|
|
||||||
struct _ANDROID_BOOTIMG_PROTOCOL {
|
struct _ANDROID_BOOTIMG_PROTOCOL {
|
||||||
|
@ -357,12 +357,13 @@ AndroidBootImgUpdateFdt (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
goto Fdt_Exit;
|
goto Fdt_Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Status = gBS->InstallConfigurationTable (
|
||||||
|
&gFdtTableGuid,
|
||||||
|
(VOID *)(UINTN)NewFdtBase
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->InstallConfigurationTable (
|
|
||||||
&gFdtTableGuid,
|
|
||||||
(VOID *)(UINTN)NewFdtBase
|
|
||||||
);
|
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user