mirror of https://github.com/acidanthera/audk.git
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:
parent
80ee06cee7
commit
ac811846f2
|
@ -33,8 +33,8 @@ EFI_STATUS
|
|||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB) (
|
||||
IN EFI_PHYSICAL_ADDRESS OrigDtbBase;
|
||||
OUT EFI_PHYSICAL_ADDRESS *NewDtbBase;
|
||||
IN EFI_PHYSICAL_ADDRESS OrigDtbBase,
|
||||
OUT EFI_PHYSICAL_ADDRESS *NewDtbBase
|
||||
);
|
||||
|
||||
struct _ANDROID_BOOTIMG_PROTOCOL {
|
||||
|
|
|
@ -357,12 +357,13 @@ AndroidBootImgUpdateFdt (
|
|||
if (EFI_ERROR (Status)) {
|
||||
goto Fdt_Exit;
|
||||
}
|
||||
|
||||
Status = gBS->InstallConfigurationTable (
|
||||
&gFdtTableGuid,
|
||||
(VOID *)(UINTN)NewFdtBase
|
||||
);
|
||||
}
|
||||
|
||||
Status = gBS->InstallConfigurationTable (
|
||||
&gFdtTableGuid,
|
||||
(VOID *)(UINTN)NewFdtBase
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue