Kernel: Remove duplicative kgettimeofday(timeval&) function

This commit is contained in:
Ben Wiederhake 2021-02-28 02:09:56 +01:00 committed by Andreas Kling
parent c040e64b7d
commit 05d5e3fad9
3 changed files with 1 additions and 8 deletions

View file

@ -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;

View file

@ -386,11 +386,6 @@ timeval kgettimeofday()
return TimeManagement::now().to_timeval();
}
void kgettimeofday(timeval& tv)
{
tv = kgettimeofday();
}
siginfo_t Process::wait_info()
{
siginfo_t siginfo {};

View file

@ -56,7 +56,6 @@ namespace Kernel {
// FIXME: Should use AK::Time internally
timeval kgettimeofday();
void kgettimeofday(timeval&);
#define ENUMERATE_PLEDGE_PROMISES \
__ENUMERATE_PLEDGE_PROMISE(stdio) \