diff options
author | Marvin Häuser <Marvin.Haeuser@outlook.com> | 2018-02-27 23:30:19 +0100 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2018-02-28 09:15:09 +0800 |
commit | fdeefbdf6ede2365c5067f6a2e49f8e525c85dd6 (patch) | |
tree | 50fba4e72cf586018d1651cdbad78a6e2888bfb9 /Platform/Intel | |
parent | 6334587432b167ce471a25e19b43439e4aa8f7d4 (diff) | |
download | edk2-platforms-fdeefbdf6ede2365c5067f6a2e49f8e525c85dd6.tar.xz |
MinPlatformPkg/PeiFspWrapperHobProcessLib: Add missing typecasts.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'Platform/Intel')
-rw-r--r-- | Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c index 3aa207a306..4fdbe39e78 100644 --- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c +++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/FspWrapperHobProcessLib.c @@ -417,7 +417,7 @@ CheckFspGraphicsDeviceInfoHob ( EFI_PEI_GRAPHICS_DEVICE_INFO_HOB *FspGraphicsDeviceInfo = NULL;
EFI_PEI_GRAPHICS_DEVICE_INFO_HOB GraphicsDeviceInfo;
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
if (!EFI_ERROR (Status)) {
if (Hob.Raw != NULL) {
if ((Hob.Raw = GetNextGuidHob (&gEfiGraphicsInfoHobGuid, Hob.Raw)) != NULL) {
@@ -429,7 +429,7 @@ CheckFspGraphicsDeviceInfoHob ( return ;
}
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
if (!EFI_ERROR (Status)) {
if (Hob.Raw != NULL) {
if ((Hob.Raw = GetNextGuidHob (&gEfiGraphicsDeviceInfoHobGuid, Hob.Raw)) != NULL) {
@@ -507,7 +507,8 @@ DumpFspHobList ( EFI_PEI_HOB_POINTERS Hob;
EFI_STATUS Status;
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
+ ASSERT_EFI_ERROR (Status);
while (!END_OF_HOB_LIST (Hob)) {
if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION) {
DEBUG ((DEBUG_INFO, "FSP Extended GUID HOB: {%g}\n", &(Hob.Guid->Name)));
@@ -534,7 +535,8 @@ DumpFspMemoryResource ( EFI_PEI_HOB_POINTERS Hob;
EFI_STATUS Status;
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
+ ASSERT_EFI_ERROR (Status);
DEBUG ((DEBUG_INFO, "\nFSP Memory Resource\n"));
DEBUG ((DEBUG_INFO, " Resource Range Type Attribute Owner\n"));
DEBUG ((DEBUG_INFO, "================================= ==== ================ ====================================\n"));
@@ -573,7 +575,7 @@ DumpFspGraphicsInfoHob ( EFI_STATUS Status;
EFI_PEI_GRAPHICS_INFO_HOB *FspGraphicsInfo = NULL;
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
if (!EFI_ERROR (Status)) {
if (Hob.Raw != NULL) {
if ((Hob.Raw = GetNextGuidHob (&gEfiGraphicsInfoHobGuid, Hob.Raw)) != NULL) {
@@ -612,7 +614,7 @@ DumpFspGraphicsDeviceInfoHob ( EFI_STATUS Status;
EFI_PEI_GRAPHICS_DEVICE_INFO_HOB *FspGraphicsDeviceInfo = NULL;
- Status = PeiServicesGetHobList (&Hob.Raw);
+ Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
if (!EFI_ERROR (Status)) {
if (Hob.Raw != NULL) {
if ((Hob.Raw = GetNextGuidHob (&gEfiGraphicsDeviceInfoHobGuid, Hob.Raw)) != NULL) {
|