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>
This commit is contained in:
parent
2ba796eb23
commit
995dfefdf0
@ -233,13 +233,13 @@ static int pe_relocate(uintptr_t new_addr, void *pe, void *fsp, size_t fih_off)
|
|||||||
uint32_t i;
|
uint32_t i;
|
||||||
EFI_IMAGE_DATA_DIRECTORY *relocd;
|
EFI_IMAGE_DATA_DIRECTORY *relocd;
|
||||||
|
|
||||||
relocd = (void *) &pe_base[offset];
|
relocd = (void *)&pe_base[offset];
|
||||||
offset += sizeof(*relocd);
|
offset += sizeof(*relocd);
|
||||||
// Read relocation type, offset pairs
|
// Read relocation type, offset pairs
|
||||||
rlen = read_le32(&relocd->Size) - sizeof(*relocd);
|
rlen = read_le32(&relocd->Size) - sizeof(*relocd);
|
||||||
rnum = rlen / sizeof(uint16_t);
|
rnum = rlen / sizeof(uint16_t);
|
||||||
vaddr = read_le32(&relocd->VirtualAddress);
|
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);
|
printk(FSP_DBG_LVL, "\t%d Relocs for RVA %x\n", rnum, vaddr);
|
||||||
|
|
||||||
for (i = 0; i < rnum; i++) {
|
for (i = 0; i < rnum; i++) {
|
||||||
|
@ -76,7 +76,7 @@ int bounce_buffer_stop(struct bounce_buffer *state);
|
|||||||
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \
|
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \
|
||||||
char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \
|
char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \
|
||||||
DMA_MINALIGN - 1]; \
|
DMA_MINALIGN - 1]; \
|
||||||
type *name = (type *) ALIGN_UP((uintptr_t)__##name, DMA_MINALIGN)
|
type *name = (type *)ALIGN_UP((uintptr_t)__##name, DMA_MINALIGN)
|
||||||
#ifndef ARCH_DMA_MINALIGN
|
#ifndef ARCH_DMA_MINALIGN
|
||||||
#define ARCH_DMA_MINALIGN (DMA_MINALIGN)
|
#define ARCH_DMA_MINALIGN (DMA_MINALIGN)
|
||||||
#endif
|
#endif
|
||||||
|
@ -120,10 +120,10 @@ int sdhci_setup_adma(struct sdhci_ctrlr *sdhci_ctrlr, struct mmc_data *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dma64)
|
if (dma64)
|
||||||
sdhci_writel(sdhci_ctrlr, (uintptr_t) sdhci_ctrlr->adma64_descs,
|
sdhci_writel(sdhci_ctrlr, (uintptr_t)sdhci_ctrlr->adma64_descs,
|
||||||
SDHCI_ADMA_ADDRESS);
|
SDHCI_ADMA_ADDRESS);
|
||||||
else
|
else
|
||||||
sdhci_writel(sdhci_ctrlr, (uintptr_t) sdhci_ctrlr->adma_descs,
|
sdhci_writel(sdhci_ctrlr, (uintptr_t)sdhci_ctrlr->adma_descs,
|
||||||
SDHCI_ADMA_ADDRESS);
|
SDHCI_ADMA_ADDRESS);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \
|
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \
|
||||||
char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \
|
char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \
|
||||||
DMA_MINALIGN - 1]; \
|
DMA_MINALIGN - 1]; \
|
||||||
type *name = (type *) ALIGN_UP((uintptr_t)__##name, DMA_MINALIGN)
|
type *name = (type *)ALIGN_UP((uintptr_t)__##name, DMA_MINALIGN)
|
||||||
|
|
||||||
/* NOOPs mirroring ARM's cache API, since x86 devices usually cache snoop */
|
/* NOOPs mirroring ARM's cache API, since x86 devices usually cache snoop */
|
||||||
#define dcache_invalidate_by_mva(addr, len)
|
#define dcache_invalidate_by_mva(addr, len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user