diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-02-28 02:09:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-02 08:36:08 +0100 |
commit | 05d5e3fad90c5e45b7d65b74251e2c7b8907936e (patch) | |
tree | d5067ce87f1e78ef29cfd16976d97ad907206bbb /Kernel/FileSystem/TmpFS.cpp | |
parent | c040e64b7d231fc374e99882751c58f50e116339 (diff) | |
download | serenity-05d5e3fad90c5e45b7d65b74251e2c7b8907936e.zip |
Kernel: Remove duplicative kgettimeofday(timeval&) function
Diffstat (limited to 'Kernel/FileSystem/TmpFS.cpp')
-rw-r--r-- | Kernel/FileSystem/TmpFS.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/FileSystem/TmpFS.cpp b/Kernel/FileSystem/TmpFS.cpp index 07e45841fc..5ac084baa5 100644 --- a/Kernel/FileSystem/TmpFS.cpp +++ b/Kernel/FileSystem/TmpFS.cpp @@ -280,8 +280,7 @@ KResultOr<NonnullRefPtr<Inode>> TmpFSInode::create_child(const String& name, mod if (dev != 0) return ENOTSUP; - struct timeval now; - kgettimeofday(now); + struct timeval now = kgettimeofday(); InodeMetadata metadata; metadata.mode = mode; |