diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:11:33 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-21 15:03:50 +0000 |
commit | 24ca80aab6f5e001c5ce2ac5e8c29e8664215861 (patch) | |
tree | 0eda4d90c953ea8c1b65898272e6db7d8614cee7 /src | |
parent | 1840f935d65905ead7a44d18aa974b29bdb8c79e (diff) |
src/superio: Remove unnecessary space after casts
Change-Id: Iab76316f345fb0cf2ca2a3eaf40f64a1f1b7fc13
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69814
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/superio/aspeed/common/aspeed.h | 2 | ||||
-rw-r--r-- | src/superio/fintek/f81803a/fan_control.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/superio/aspeed/common/aspeed.h b/src/superio/aspeed/common/aspeed.h index 3673a71c84..f41ca0f65c 100644 --- a/src/superio/aspeed/common/aspeed.h +++ b/src/superio/aspeed/common/aspeed.h @@ -408,7 +408,7 @@ #define ASPEED_EXIT_KEY 0xAA #define TO_BE_UPDATE 0 -#define AndMask32(HighBit, LowBit) ~((((uint32_t) 1 << (HighBit - LowBit + 1)) - 1) << LowBit) +#define AndMask32(HighBit, LowBit) ~((((uint32_t)1 << (HighBit - LowBit + 1)) - 1) << LowBit) typedef enum { GPIOA = 0, diff --git a/src/superio/fintek/f81803a/fan_control.c b/src/superio/fintek/f81803a/fan_control.c index 06a83387a0..8b5ddaca04 100644 --- a/src/superio/fintek/f81803a/fan_control.c +++ b/src/superio/fintek/f81803a/fan_control.c @@ -281,7 +281,7 @@ int set_sections(u16 base_address, u8 fan, u8 *boundaries, u8 *sections) if (value > 100) return message_invalid_2(HWM_STATUS_INVALID_SECTION_VALUE, fan); temp = (255 * value) / 100; - value = (u8) (temp & 0x00ff); + value = (u8)(temp & 0x00ff); write_hwm_reg(base_address, index, value); index++; } |