From f65ae7490a8f8c1ada67902b149ac6591c21b2d1 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Wed, 6 Sep 2023 10:57:56 -0700 Subject: clean-up: Remove the no more necessary `ENV_HAS_DATA_SECTION` flag With commit b7832de0260b042c25bf8f53abcb32e20a29ae9c ("x86: Add .data section support for pre-memory stages"), the `ENV_HAS_DATA_SECTION' flag and its derivatives can now be removed from the code. Change-Id: Ic0afac76264a9bd4a9c93ca35c90bd84e9b747a2 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/77291 Reviewed-by: Julius Werner Reviewed-by: Maximilian Brune Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/ec_boardid.c | 2 +- src/ec/google/chromeec/ec_skuid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ec/google/chromeec') diff --git a/src/ec/google/chromeec/ec_boardid.c b/src/ec/google/chromeec/ec_boardid.c index b19d9a74b2..d728324272 100644 --- a/src/ec/google/chromeec/ec_boardid.c +++ b/src/ec/google/chromeec/ec_boardid.c @@ -5,7 +5,7 @@ uint32_t board_id(void) { - MAYBE_STATIC_NONZERO uint32_t id = BOARD_ID_INIT; + static uint32_t id = BOARD_ID_INIT; if (id == BOARD_ID_INIT) { if (google_chromeec_get_board_version(&id)) diff --git a/src/ec/google/chromeec/ec_skuid.c b/src/ec/google/chromeec/ec_skuid.c index 874324497f..259ce44f2a 100644 --- a/src/ec/google/chromeec/ec_skuid.c +++ b/src/ec/google/chromeec/ec_skuid.c @@ -5,7 +5,7 @@ uint32_t google_chromeec_get_board_sku(void) { - MAYBE_STATIC_NONZERO uint32_t sku_id = CROS_SKU_UNKNOWN; + static uint32_t sku_id = CROS_SKU_UNKNOWN; if (sku_id != CROS_SKU_UNKNOWN) return sku_id; -- cgit v1.2.3