From 995dfefdf06310064db71bcad2aa7e5b0cd92fec Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Fri, 18 Nov 2022 15:22:07 +0100 Subject: src/commonlib: Remove unnecessary space after casts Change-Id: Ib20f02cc9e5be0efea8bc29fce6bd148adf28ead Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/69817 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/commonlib/storage/bouncebuf.h | 2 +- src/commonlib/storage/sdhci_adma.c | 4 ++-- src/commonlib/storage/storage.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commonlib/storage') diff --git a/src/commonlib/storage/bouncebuf.h b/src/commonlib/storage/bouncebuf.h index 9e3ab746b5..fce3fbd2ec 100644 --- a/src/commonlib/storage/bouncebuf.h +++ b/src/commonlib/storage/bouncebuf.h @@ -76,7 +76,7 @@ int bounce_buffer_stop(struct bounce_buffer *state); #define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \ 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 #define ARCH_DMA_MINALIGN (DMA_MINALIGN) #endif diff --git a/src/commonlib/storage/sdhci_adma.c b/src/commonlib/storage/sdhci_adma.c index 92f938f6b1..9ad949edcd 100644 --- a/src/commonlib/storage/sdhci_adma.c +++ b/src/commonlib/storage/sdhci_adma.c @@ -120,10 +120,10 @@ int sdhci_setup_adma(struct sdhci_ctrlr *sdhci_ctrlr, struct mmc_data *data) } 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); else - sdhci_writel(sdhci_ctrlr, (uintptr_t) sdhci_ctrlr->adma_descs, + sdhci_writel(sdhci_ctrlr, (uintptr_t)sdhci_ctrlr->adma_descs, SDHCI_ADMA_ADDRESS); return 0; diff --git a/src/commonlib/storage/storage.h b/src/commonlib/storage/storage.h index cdd5e6c4b3..5f51ba9502 100644 --- a/src/commonlib/storage/storage.h +++ b/src/commonlib/storage/storage.h @@ -11,7 +11,7 @@ #define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \ 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 */ #define dcache_invalidate_by_mva(addr, len) -- cgit v1.2.3