aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/intel/edk2
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/intel/edk2')
-rw-r--r--src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Library/HobLib.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Library/HobLib.h b/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Library/HobLib.h
index 2cc4b1b36e..ea95b5cb8d 100644
--- a/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Library/HobLib.h
+++ b/src/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Library/HobLib.h
@@ -431,7 +431,7 @@ BuildMemoryAllocationHob (
**/
#define GET_HOB_TYPE(HobStart) \
- ((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobType)
+ (((EFI_HOB_GENERIC_HEADER *)HobStart)->HobType)
/**
Returns the length, in bytes, of a HOB.
@@ -445,7 +445,7 @@ BuildMemoryAllocationHob (
**/
#define GET_HOB_LENGTH(HobStart) \
- ((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobLength)
+ (((EFI_HOB_GENERIC_HEADER *)HobStart)->HobLength)
/**
Returns a pointer to the next HOB in the HOB list.
@@ -459,7 +459,7 @@ BuildMemoryAllocationHob (
**/
#define GET_NEXT_HOB(HobStart) \
- (VOID *)(*(UINT8 **)&(HobStart) + GET_HOB_LENGTH (HobStart))
+ (VOID *)((UINT8 *)(HobStart) + GET_HOB_LENGTH(HobStart))
/**
Determines if a HOB is the last HOB in the HOB list.
@@ -488,7 +488,7 @@ BuildMemoryAllocationHob (
**/
#define GET_GUID_HOB_DATA(HobStart) \
- (VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE))
+ (VOID *)((UINT8 *)(HobStart) + sizeof(EFI_HOB_GUID_TYPE))
/**
Returns the size of the data buffer from a HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
@@ -501,6 +501,6 @@ BuildMemoryAllocationHob (
@return The size of the data buffer.
**/
#define GET_GUID_HOB_DATA_SIZE(HobStart) \
- (UINT16)(GET_HOB_LENGTH (HobStart) - sizeof (EFI_HOB_GUID_TYPE))
+ (UINT16)(GET_HOB_LENGTH(HobStart) - sizeof(EFI_HOB_GUID_TYPE))
#endif