From d835da91552bc74892dce7b9d2aafb74ce86b1f2 Mon Sep 17 00:00:00 2001 From: Fabio Aiuto Date: Fri, 30 Sep 2022 11:25:28 +0200 Subject: treewide: use predicates to check for enabled pci devices use functions to check for pci devices instead of open-coded solution. TEST: compiled and qemu run successfully Signed-off-by: Fabio Aiuto Change-Id: Idb992904112db611119b2d33c8b1dd912b2c8539 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68102 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/arch/x86/mpspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c index 2e65e252d5..739d185bf0 100644 --- a/src/arch/x86/mpspec.c +++ b/src/arch/x86/mpspec.c @@ -575,7 +575,7 @@ unsigned long __weak write_smp_table(unsigned long addr) for (dev = all_devices; dev; dev = dev->next) { - if (dev->path.type != DEVICE_PATH_PCI || !dev->enabled) + if (!is_enabled_pci(dev)) continue; have_fixed_entries = 0; -- cgit v1.2.3