From a2be4c9dc638c029185e9ca0ca9752feae75523e Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Tue, 15 Mar 2022 12:39:13 +0100 Subject: print_buildinfo: remove unreachable print of libpci version The libpci header is neither directly nor indirectly included in flashrom.c. `PCILIB_VERSION` is therefore never set and the following print statement is dead code. Since libpci is the only library in buildinfo, Drop it. Change-Id: I0b5dbf3bd82a2ffe64b73881383e92f7dad4c382 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/62833 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Edward O'Callaghan Reviewed-by: Nico Huber --- flashrom.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/flashrom.c b/flashrom.c index ac612596..51a9fbee 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1646,13 +1646,6 @@ static void print_sysinfo(void) void print_buildinfo(void) { msg_gdbg("flashrom was built with"); -#if NEED_PCI == 1 -#ifdef PCILIB_VERSION - msg_gdbg(" libpci %s,", PCILIB_VERSION); -#else - msg_gdbg(" unknown PCI library,"); -#endif -#endif #ifdef __clang__ msg_gdbg(" LLVM Clang"); #ifdef __clang_version__ -- cgit v1.2.3