summaryrefslogtreecommitdiffstats
path: root/src/commonlib/fsp_relocate.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-18 15:22:07 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-22 13:47:15 +0000
commit995dfefdf06310064db71bcad2aa7e5b0cd92fec (patch)
tree3abd2381b6064a9a0a580737530134fe33ef8e9d /src/commonlib/fsp_relocate.c
parent2ba796eb231b375c5b37a118c3418dfa80e95cde (diff)
downloadcoreboot-995dfefdf06310064db71bcad2aa7e5b0cd92fec.tar.gz
coreboot-995dfefdf06310064db71bcad2aa7e5b0cd92fec.tar.bz2
coreboot-995dfefdf06310064db71bcad2aa7e5b0cd92fec.zip
src/commonlib: Remove unnecessary space after casts
Change-Id: Ib20f02cc9e5be0efea8bc29fce6bd148adf28ead Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69817 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/commonlib/fsp_relocate.c')
-rw-r--r--src/commonlib/fsp_relocate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonlib/fsp_relocate.c b/src/commonlib/fsp_relocate.c
index 55295cac2dc5..ad24ca7fdaac 100644
--- a/src/commonlib/fsp_relocate.c
+++ b/src/commonlib/fsp_relocate.c
@@ -233,13 +233,13 @@ static int pe_relocate(uintptr_t new_addr, void *pe, void *fsp, size_t fih_off)
uint32_t i;
EFI_IMAGE_DATA_DIRECTORY *relocd;
- relocd = (void *) &pe_base[offset];
+ relocd = (void *)&pe_base[offset];
offset += sizeof(*relocd);
// Read relocation type, offset pairs
rlen = read_le32(&relocd->Size) - sizeof(*relocd);
rnum = rlen / sizeof(uint16_t);
vaddr = read_le32(&relocd->VirtualAddress);
- rdata = (uint16_t *) &pe_base[offset];
+ rdata = (uint16_t *)&pe_base[offset];
printk(FSP_DBG_LVL, "\t%d Relocs for RVA %x\n", rnum, vaddr);
for (i = 0; i < rnum; i++) {