diff --git a/Kernel/FileSystem/FIFO.cpp b/Kernel/FileSystem/FIFO.cpp index 1fadae8c6b..6692a753fb 100644 --- a/Kernel/FileSystem/FIFO.cpp +++ b/Kernel/FileSystem/FIFO.cpp @@ -134,7 +134,7 @@ ErrorOr FIFO::write(OpenFileDescription& fd, u64, const UserOrKernelBuff ErrorOr> FIFO::pseudo_path(const OpenFileDescription&) const { - return KString::try_create(String::formatted("fifo:{}", m_fifo_id)); + return KString::formatted("fifo:{}", m_fifo_id); } ErrorOr FIFO::stat(::stat& st) const diff --git a/Kernel/FileSystem/InodeWatcher.cpp b/Kernel/FileSystem/InodeWatcher.cpp index 69a9af8016..d4bc588e3b 100644 --- a/Kernel/FileSystem/InodeWatcher.cpp +++ b/Kernel/FileSystem/InodeWatcher.cpp @@ -83,7 +83,7 @@ ErrorOr InodeWatcher::close() ErrorOr> InodeWatcher::pseudo_path(const OpenFileDescription&) const { - return KString::try_create(String::formatted("InodeWatcher:({})", m_wd_to_watches.size())); + return KString::formatted("InodeWatcher:({})", m_wd_to_watches.size()); } void InodeWatcher::notify_inode_event(Badge, InodeIdentifier inode_id, InodeWatcherEvent::Type event_type, String const& name)