summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-18 15:21:37 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-22 13:46:47 +0000
commit2ba796eb231b375c5b37a118c3418dfa80e95cde (patch)
tree401d06b1de21582675906a2444fcd1f8dc88f2c9 /src/arch/x86
parent3a9980767e4ce054630cf7bb92fdb8a5405de53c (diff)
src/arch: Remove unnecessary space after casts
Change-Id: I00551dfd963d47a58284bc31f21b0fa12130fe78 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69816 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/cpu.c2
-rw-r--r--src/arch/x86/memset.c4
-rw-r--r--src/arch/x86/pirq_routing.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/cpu.c b/src/arch/x86/cpu.c
index 6a8ddefa14..9fc52330dc 100644
--- a/src/arch/x86/cpu.c
+++ b/src/arch/x86/cpu.c
@@ -59,7 +59,7 @@ static inline int test_cyrix_52div(void)
: "cc");
/* AH is 0x02 on Cyrix after the divide.. */
- return (unsigned char) (test >> 8) == 0x02;
+ return (unsigned char)(test >> 8) == 0x02;
}
/*
diff --git a/src/arch/x86/memset.c b/src/arch/x86/memset.c
index fc09a9bd52..8a0165ba29 100644
--- a/src/arch/x86/memset.c
+++ b/src/arch/x86/memset.c
@@ -12,7 +12,7 @@ typedef uint32_t op_t;
void *memset(void *dstpp, int c, size_t len)
{
int d0;
- unsigned long int dstp = (unsigned long int) dstpp;
+ unsigned long int dstp = (unsigned long int)dstpp;
#if (ENV_ROMSTAGE && CONFIG(ASAN_IN_ROMSTAGE)) || \
(ENV_RAMSTAGE && CONFIG(ASAN_IN_RAMSTAGE))
@@ -22,7 +22,7 @@ void *memset(void *dstpp, int c, size_t len)
/* This explicit register allocation improves code very much indeed. */
register op_t x asm("ax");
- x = (unsigned char) c;
+ x = (unsigned char)c;
/* Clear the direction flag, so filling will move forward. */
asm volatile("cld");
diff --git a/src/arch/x86/pirq_routing.c b/src/arch/x86/pirq_routing.c
index 362650dea9..0da057f4f1 100644
--- a/src/arch/x86/pirq_routing.c
+++ b/src/arch/x86/pirq_routing.c
@@ -17,7 +17,7 @@ static void check_pirq_routing_table(struct irq_routing_table *rt)
if (sizeof(struct irq_routing_table) != rt->size) {
printk(BIOS_WARNING,
"Inconsistent Interrupt Routing Table size (0x%x/0x%x).\n",
- (unsigned int) sizeof(struct irq_routing_table),
+ (unsigned int)sizeof(struct irq_routing_table),
rt->size);
rt->size = sizeof(struct irq_routing_table);
}