diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-24 02:20:14 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-24 02:20:14 +0200 |
commit | ca9ed13643246911bdad7a34494b0420c740da7a (patch) | |
tree | b67d629bebbf06ee1877307682a0ce23fee7b7bc /Kernel/Devices/Device.cpp | |
parent | c1b310c5bf21c33324003430226b50e4fe18dd0f (diff) | |
download | serenity-ca9ed13643246911bdad7a34494b0420c740da7a.zip |
Kernel: Simplify Device::open().
Diffstat (limited to 'Kernel/Devices/Device.cpp')
-rw-r--r-- | Kernel/Devices/Device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp index e04f196e5b..0163c94736 100644 --- a/Kernel/Devices/Device.cpp +++ b/Kernel/Devices/Device.cpp @@ -15,7 +15,8 @@ Device::~Device() KResultOr<Retained<FileDescriptor>> Device::open(int options) { - return VFS::the().open(*this, options); + UNUSED_PARAM(options); + return FileDescriptor::create(this); } void Device::close() |