From a6ec6b831bea32a05e87165a0b45dca85864813b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Apr 2021 15:45:48 +0200 Subject: [PATCH] Kernel: Remove unused UHCI_ENABLED flag --- Kernel/Devices/USB/UHCIController.cpp | 4 ---- Kernel/init.cpp | 1 - 2 files changed, 5 deletions(-) diff --git a/Kernel/Devices/USB/UHCIController.cpp b/Kernel/Devices/USB/UHCIController.cpp index f6e490ba43b..235d1ec4f53 100644 --- a/Kernel/Devices/USB/UHCIController.cpp +++ b/Kernel/Devices/USB/UHCIController.cpp @@ -35,7 +35,6 @@ #include #include -#define UHCI_ENABLED 1 static constexpr u8 MAXIMUM_NUMBER_OF_TDS = 128; // Upper pool limit. This consumes the second page we have allocated static constexpr u8 MAXIMUM_NUMBER_OF_QHS = 64; @@ -90,9 +89,6 @@ UHCIController& UHCIController::the() UNMAP_AFTER_INIT void UHCIController::detect() { -#if !UHCI_ENABLED - return; -#endif PCI::enumerate([&](const PCI::Address& address, PCI::ID id) { if (address.is_null()) return; diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 4d13c7384ee..0c782da7870 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -277,7 +277,6 @@ void init_stage2(void*) } } - // FIXME: This should not be i386-specific. USB::UHCIController::detect(); DMIExpose::initialize();