From 7d241968ff4feb83bc23636df3a7ddb80f4bb4a9 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 24 Jul 2026 00:55:57 +0200 Subject: kapi/device: remove init() --- kernel/kapi/boot_module/bus.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'kernel/kapi/boot_module') diff --git a/kernel/kapi/boot_module/bus.cpp b/kernel/kapi/boot_module/bus.cpp index b917866c..3e95a3ac 100644 --- a/kernel/kapi/boot_module/bus.cpp +++ b/kernel/kapi/boot_module/bus.cpp @@ -20,7 +20,8 @@ namespace kapi::boot_modules { auto const text = std::string_view{token}; auto const equals = text.find('='); - if (equals != std::string_view::npos && text.substr(equals) == key && text.substr(equals + 1) == value) + if (equals != std::string_view::npos && text.substr(0, equals) == key && + text.substr(equals + 1, value.size()) == value) { return true; } @@ -33,11 +34,6 @@ namespace kapi::boot_modules , m_module(module) {} - auto boot_module_device::init() -> bool - { - return true; - } - auto boot_module_device::command_line() const -> std::string_view { return m_module.name; -- cgit v1.2.3