mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:07:44 +00:00
Kernel: Simplify Device::open().
This commit is contained in:
parent
c1b310c5bf
commit
ca9ed13643
3 changed files with 4 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue