diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:21:03 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2023-01-30 22:11:50 +0000 |
commit | 486240fc7d2f1f8fc5bac2614d5f4139ab8d4ea3 (patch) | |
tree | 23e4c847aa743f03125518e6cf103c072fe3cb28 /src/mainboard/emulation | |
parent | f58abca47a48c3f3e6cee2599b1fcb7619865169 (diff) |
src/mainboard: Remove unnecessary space after casts
Change-Id: Id8e1a52279e6a606441eefe30e24bcd44e006aad
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69815
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Jonathon Hall <jonathon.hall@puri.sm>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r-- | src/mainboard/emulation/qemu-armv7/mainboard.c | 2 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/memmap.c | 10 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-power8/uart.c | 2 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-riscv/uart.c | 2 | ||||
-rw-r--r-- | src/mainboard/emulation/spike-riscv/uart.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/emulation/qemu-armv7/mainboard.c b/src/mainboard/emulation/qemu-armv7/mainboard.c index 441086fe3d..a5e9183f3e 100644 --- a/src/mainboard/emulation/qemu-armv7/mainboard.c +++ b/src/mainboard/emulation/qemu-armv7/mainboard.c @@ -15,7 +15,7 @@ static void init_gfx(void) /* height is at most 1024 */ int width = 800, height = 600; uint32_t framebuffer = 0x4c000000; - pl111 = (uint32_t *) 0x10020000; + pl111 = (uint32_t *)0x10020000; write32(pl111, (width / 4) - 4); write32(pl111 + 1, height - 1); /* registers 2, 3 and 5 are ignored by qemu. Set them correctly if diff --git a/src/mainboard/emulation/qemu-i440fx/memmap.c b/src/mainboard/emulation/qemu-i440fx/memmap.c index efe83c3449..be730b7516 100644 --- a/src/mainboard/emulation/qemu-i440fx/memmap.c +++ b/src/mainboard/emulation/qemu-i440fx/memmap.c @@ -22,11 +22,11 @@ unsigned long qemu_get_high_memory_size(void) { unsigned long high; outb(HIGH_HIGHRAM_ADDR, CMOS_ADDR_PORT); - high = ((unsigned long) inb(CMOS_DATA_PORT)) << 22; + high = ((unsigned long)inb(CMOS_DATA_PORT)) << 22; outb(MID_HIGHRAM_ADDR, CMOS_ADDR_PORT); - high |= ((unsigned long) inb(CMOS_DATA_PORT)) << 14; + high |= ((unsigned long)inb(CMOS_DATA_PORT)) << 14; outb(LOW_HIGHRAM_ADDR, CMOS_ADDR_PORT); - high |= ((unsigned long) inb(CMOS_DATA_PORT)) << 6; + high |= ((unsigned long)inb(CMOS_DATA_PORT)) << 6; return high; } @@ -34,9 +34,9 @@ unsigned long qemu_get_memory_size(void) { unsigned long tomk; outb(HIGH_RAM_ADDR, CMOS_ADDR_PORT); - tomk = ((unsigned long) inb(CMOS_DATA_PORT)) << 14; + tomk = ((unsigned long)inb(CMOS_DATA_PORT)) << 14; outb(LOW_RAM_ADDR, CMOS_ADDR_PORT); - tomk |= ((unsigned long) inb(CMOS_DATA_PORT)) << 6; + tomk |= ((unsigned long)inb(CMOS_DATA_PORT)) << 6; tomk += 16 * 1024; return tomk; } diff --git a/src/mainboard/emulation/qemu-power8/uart.c b/src/mainboard/emulation/qemu-power8/uart.c index a369e62ba5..c9113b4b54 100644 --- a/src/mainboard/emulation/qemu-power8/uart.c +++ b/src/mainboard/emulation/qemu-power8/uart.c @@ -7,7 +7,7 @@ static uint8_t *buf = (void *)0; uintptr_t uart_platform_base(unsigned int idx) { - return (uintptr_t) buf; + return (uintptr_t)buf; } void uart_init(unsigned int idx) diff --git a/src/mainboard/emulation/qemu-riscv/uart.c b/src/mainboard/emulation/qemu-riscv/uart.c index 19a2b0016c..8f8a3a32e0 100644 --- a/src/mainboard/emulation/qemu-riscv/uart.c +++ b/src/mainboard/emulation/qemu-riscv/uart.c @@ -6,5 +6,5 @@ uintptr_t uart_platform_base(unsigned int idx) { - return (uintptr_t) QEMU_VIRT_UART0; + return (uintptr_t)QEMU_VIRT_UART0; } diff --git a/src/mainboard/emulation/spike-riscv/uart.c b/src/mainboard/emulation/spike-riscv/uart.c index efefc52d62..4ea2466878 100644 --- a/src/mainboard/emulation/spike-riscv/uart.c +++ b/src/mainboard/emulation/spike-riscv/uart.c @@ -5,5 +5,5 @@ uintptr_t uart_platform_base(unsigned int idx) { - return (uintptr_t) 0x02100000; + return (uintptr_t)0x02100000; } |