From 9ca56bccc64d549e5dd86d07e0e961e8be18c5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Holz?= Date: Tue, 21 Jul 2026 21:31:59 +0200 Subject: [PATCH] Kernel: Remove an unnecessary const_cast from InodeWatcher --- Kernel/FileSystem/InodeWatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/InodeWatcher.cpp b/Kernel/FileSystem/InodeWatcher.cpp index 4929c2abee2..5848ad1cea8 100644 --- a/Kernel/FileSystem/InodeWatcher.cpp +++ b/Kernel/FileSystem/InodeWatcher.cpp @@ -71,7 +71,7 @@ ErrorOr InodeWatcher::close() { m_watch_maps.with([this](auto& watch_maps) { for (auto& entry : watch_maps.wd_to_watches) { - auto& inode = const_cast(entry.value->inode); + auto& inode = entry.value->inode; inode.unregister_watcher({}, *this); }