summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevPtsFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-08 02:34:22 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-08 02:34:22 +0100
commit8731682d0eca68b3dce60e713d5808829c3b5adb (patch)
tree10584e6a259b6a3cc918471c251571595c388439 /Kernel/FileSystem/DevPtsFS.h
parentcb97ef5589e8e6bf8ecf7974960a0f7635d95f87 (diff)
downloadserenity-8731682d0eca68b3dce60e713d5808829c3b5adb.zip
Kernel: Simplify FS::create_directory() a little bit
None of the clients of this function actually used the returned Inode, so it can simply return a KResult instead.
Diffstat (limited to 'Kernel/FileSystem/DevPtsFS.h')
-rw-r--r--Kernel/FileSystem/DevPtsFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.h b/Kernel/FileSystem/DevPtsFS.h
index fd4a7bd35e..a8ddc6cc58 100644
--- a/Kernel/FileSystem/DevPtsFS.h
+++ b/Kernel/FileSystem/DevPtsFS.h
@@ -43,7 +43,7 @@ public:
virtual InodeIdentifier root_inode() const override;
virtual RefPtr<Inode> create_inode(InodeIdentifier parent_inode, const String& name, mode_t, off_t size, dev_t, uid_t, gid_t, int& error) override;
- virtual RefPtr<Inode> create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t, int& error) override;
+ virtual KResult create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t) override;
virtual RefPtr<Inode> get_inode(InodeIdentifier) const override;
static void register_slave_pty(SlavePTY&);