aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/boot_module/bus.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-24 00:55:57 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-24 00:55:57 +0200
commit7d241968ff4feb83bc23636df3a7ddb80f4bb4a9 (patch)
tree82ebfa2184ffa00b4bccb1a6ba77cf82a54ee251 /kernel/kapi/boot_module/bus.cpp
parentb334a8494bef50c5b90adc1f101464fc8c4c971a (diff)
downloadkernel-7d241968ff4feb83bc23636df3a7ddb80f4bb4a9.tar.xz
kernel-7d241968ff4feb83bc23636df3a7ddb80f4bb4a9.zip
kapi/device: remove init()
Diffstat (limited to 'kernel/kapi/boot_module/bus.cpp')
-rw-r--r--kernel/kapi/boot_module/bus.cpp8
1 files changed, 2 insertions, 6 deletions
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;