Kernel: Remove an unnecessary const_cast from InodeWatcher

This commit is contained in:
Sönke Holz authored and Sönke Holz committed 2026-07-22 09:49:52 +02:00
1 parent 8fb32d1435
commit 9ca56bccc6
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ ErrorOr<void> InodeWatcher::close()
{
m_watch_maps.with([this](auto& watch_maps) {
for (auto& entry : watch_maps.wd_to_watches) {
auto& inode = const_cast<Inode&>(entry.value->inode);
auto& inode = entry.value->inode;
inode.unregister_watcher({}, *this);
}