mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Kernel: Port more code to KResult and KResultOr<T>.
This commit is contained in:
parent
3079ef01ce
commit
028afabf6b
15 changed files with 155 additions and 198 deletions
|
@ -13,9 +13,9 @@ Device::~Device()
|
|||
VFS::the().unregister_device(*this);
|
||||
}
|
||||
|
||||
RetainPtr<FileDescriptor> Device::open(int& error, int options)
|
||||
KResultOr<Retained<FileDescriptor>> Device::open(int options)
|
||||
{
|
||||
return VFS::the().open(*this, error, options);
|
||||
return VFS::the().open(*this, options);
|
||||
}
|
||||
|
||||
void Device::close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue