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/TmpFS.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/TmpFS.h')
-rw-r--r-- | Kernel/FileSystem/TmpFS.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/TmpFS.h b/Kernel/FileSystem/TmpFS.h index f5e95181f8..fe6620ed1d 100644 --- a/Kernel/FileSystem/TmpFS.h +++ b/Kernel/FileSystem/TmpFS.h @@ -49,7 +49,7 @@ public: virtual RefPtr<Inode> get_inode(InodeIdentifier) const override; virtual RefPtr<Inode> create_inode(InodeIdentifier parent_id, const String& name, mode_t, off_t size, dev_t, uid_t, gid_t, int& error) override; - virtual RefPtr<Inode> create_directory(InodeIdentifier parent_id, const String& name, mode_t, uid_t, gid_t, int& error) override; + virtual KResult create_directory(InodeIdentifier parent_id, const String& name, mode_t, uid_t, gid_t) override; private: TmpFS(); |