1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Simplify Device::open().

This commit is contained in:
Andreas Kling 2019-04-24 02:20:14 +02:00
parent c1b310c5bf
commit ca9ed13643
3 changed files with 4 additions and 9 deletions

View file

@ -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()