diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-08 02:34:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-08 02:34:22 +0100 |
commit | 8731682d0eca68b3dce60e713d5808829c3b5adb (patch) | |
tree | 10584e6a259b6a3cc918471c251571595c388439 /Kernel/FileSystem/FileSystem.h | |
parent | cb97ef5589e8e6bf8ecf7974960a0f7635d95f87 (diff) | |
download | serenity-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/FileSystem.h')
-rw-r--r-- | Kernel/FileSystem/FileSystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/FileSystem.h b/Kernel/FileSystem/FileSystem.h index 373f73241f..7f9f6628d4 100644 --- a/Kernel/FileSystem/FileSystem.h +++ b/Kernel/FileSystem/FileSystem.h @@ -85,7 +85,7 @@ public: }; virtual RefPtr<Inode> create_inode(InodeIdentifier parent_inode, const String& name, mode_t, off_t size, dev_t, uid_t, gid_t, int& error) = 0; - virtual RefPtr<Inode> create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t, int& error) = 0; + virtual KResult create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t) = 0; virtual RefPtr<Inode> get_inode(InodeIdentifier) const = 0; |