From 6a1e26ef741aea7745995030c27a0c3006729505 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 28 Nov 2021 14:39:06 +0000 Subject: [PATCH] kinfocenter: correct condition for fallback PCI detection Signed-off-by: Ivailo Monev --- kinfocenter/Modules/pci/kcm_pci.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kinfocenter/Modules/pci/kcm_pci.cpp b/kinfocenter/Modules/pci/kcm_pci.cpp index 6fd83105..24bae83f 100644 --- a/kinfocenter/Modules/pci/kcm_pci.cpp +++ b/kinfocenter/Modules/pci/kcm_pci.cpp @@ -82,10 +82,10 @@ KCMPci::~KCMPci() { void KCMPci::load() { kDebug() << "Loading PCI information..." << endl; - bool fallback = false; + bool fallback = true; #ifdef HAVE_PCIUTILS - if (!GetInfo_PCIUtils(tree)) { - fallback = true; + if (GetInfo_PCIUtils(tree)) { + fallback = false; } #endif //HAVE_PCIUTILS -- 2.11.0