summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-04-20 10:21:39 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-05-26 15:04:08 +0000
commitfcbbb911162aa4dea1fc7fcc8794b22f86579fe8 (patch)
treee903cf984495a2e79be392dfb853f7f9161e867f /src/device
parent1c3faabf2472c5eee9ceabc233896e7c28e0d863 (diff)
Remove MAYBE_STATIC_BSS and ENV_STAGE_HAS_BSS_SECTION
After removal of CAR_MIGRATION there are no more reasons to carry around ENV_STAGE_HAS_BSS_SECTION=n case. Replace 'MAYBE_STATIC_BSS' with 'static' and remove explicit zero-initializers. Change-Id: I14dd9f52da5b06f0116bd97496cf794e5e71bc37 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40535 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c
index 3ad00f8838..12d5386d22 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -227,7 +227,7 @@ DEVTREE_CONST struct device *pcidev_path_on_bus(unsigned int bus, pci_devfn_t de
DEVTREE_CONST struct bus *pci_root_bus(void)
{
DEVTREE_CONST struct device *pci_domain;
- MAYBE_STATIC_BSS DEVTREE_CONST struct bus *pci_root = NULL;
+ static DEVTREE_CONST struct bus *pci_root;
if (pci_root)
return pci_root;