summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/pi
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-07-16 09:48:27 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-07-17 21:59:05 +0000
commit68fc51faf2cc83742b527b68a9009b81428b9ff2 (patch)
tree5cac120c129c4c382301ee503f08e59f222ee471 /src/soc/amd/common/pi
parentf9b535eecfda5065182aae9ec031956826cd1804 (diff)
soc/amd/common: Fix some white spaces issues
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I54438978db13ba00188e53239f7034d1b258e912 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65900 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/common/pi')
-rw-r--r--src/soc/amd/common/pi/amd_late_init.c8
-rw-r--r--src/soc/amd/common/pi/heapmanager.c4
-rw-r--r--src/soc/amd/common/pi/image.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/soc/amd/common/pi/amd_late_init.c b/src/soc/amd/common/pi/amd_late_init.c
index ea16576540..f797e4137a 100644
--- a/src/soc/amd/common/pi/amd_late_init.c
+++ b/src/soc/amd/common/pi/amd_late_init.c
@@ -81,8 +81,8 @@ static void print_dimm_info(const struct dimm_info *dimm)
dimm->serial[1],
dimm->serial[2],
dimm->serial[3],
- strlen((char *) dimm->module_part_number),
- (char *) dimm->module_part_number
+ strlen((char *)dimm->module_part_number),
+ (char *)dimm->module_part_number
);
}
@@ -120,9 +120,9 @@ static void print_dmi_info(const TYPE17_DMI_INFO *dmi17)
dmi17->FormFactor,
dmi17->DeviceLocator,
dmi17->BankLocator,
- strlen((char *) dmi17->SerialNumber),
+ strlen((char *)dmi17->SerialNumber),
dmi17->SerialNumber,
- strlen((char *) dmi17->PartNumber),
+ strlen((char *)dmi17->PartNumber),
dmi17->PartNumber
);
}
diff --git a/src/soc/amd/common/pi/heapmanager.c b/src/soc/amd/common/pi/heapmanager.c
index ab923b9de8..154f04d825 100644
--- a/src/soc/amd/common/pi/heapmanager.c
+++ b/src/soc/amd/common/pi/heapmanager.c
@@ -259,7 +259,7 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data,
BestFitNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr
+ BestFitNodeOffset);
- BestFitPrevNodePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr +
+ BestFitPrevNodePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr +
BestFitPrevNodeOffset);
/*
@@ -268,7 +268,7 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data,
*/
if (BestFitNodePtr->BufferSize > MinimumSize) {
NextFreeOffset = BestFitNodeOffset + MinimumSize;
- NextFreePtr = (BIOS_BUFFER_NODE *) (BiosHeapBaseAddr +
+ NextFreePtr = (BIOS_BUFFER_NODE *)(BiosHeapBaseAddr +
NextFreeOffset);
NextFreePtr->BufferSize = BestFitNodeSize - MinimumSize;
diff --git a/src/soc/amd/common/pi/image.c b/src/soc/amd/common/pi/image.c
index 03a2a473a0..79dd736b02 100644
--- a/src/soc/amd/common/pi/image.c
+++ b/src/soc/amd/common/pi/image.c
@@ -35,7 +35,7 @@ void *amd_find_image(const void *start_address, const void *end_address,
while ((current_ptr >= start) && (current_ptr < end)) {
if (IMAGE_SIGNATURE == *((uint32_t *)current_ptr)) {
- image_ptr = (AMD_IMAGE_HEADER *) current_ptr;
+ image_ptr = (AMD_IMAGE_HEADER *)current_ptr;
/* Check if the image has the desired module */
if (validate_image((void *)image_ptr->ModuleInfoOffset,