From f778bca3f22c418c98ba0eda20fcc471895ed2ae Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 26 May 2025 04:53:55 +0300 Subject: [PATCH] Kernel: Remove accidentally commited debug code :) --- kernel/kernel/PCI.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/kernel/PCI.cpp b/kernel/kernel/PCI.cpp index 7fc5efc205..4c14be8c29 100644 --- a/kernel/kernel/PCI.cpp +++ b/kernel/kernel/PCI.cpp @@ -714,16 +714,14 @@ namespace Kernel::PCI return InterruptMechanism::NONE; } - const bool is_xhci = false && m_class_code == 0x0C && m_subclass == 0x03 && m_prog_if == 0x30; - - if (!is_xhci && m_offset_msi_x.has_value()) + if (m_offset_msi_x.has_value()) { const uint16_t msg_ctrl = read_word(*m_offset_msi_x + 0x02); if (count <= (msg_ctrl & 0x7FF) + 1) return InterruptMechanism::MSIX; } - if (!is_xhci && m_offset_msi.has_value()) + if (m_offset_msi.has_value()) { if (count == 1) return InterruptMechanism::MSI;