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

Kernel/TTY: Don't return NonnullLockRefPtr when creating MasterPTY

We can just return a normal NonnullRefPtr because nobody needs an actual
*LockRefPtrs here anymore.
This commit is contained in:
Liav A 2023-07-08 14:45:57 +03:00 committed by Andrew Kaster
parent 82428e2a05
commit b49f2937f0
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ class SlavePTY;
class MasterPTY final : public CharacterDevice {
public:
static ErrorOr<NonnullLockRefPtr<MasterPTY>> try_create(unsigned index);
static ErrorOr<NonnullRefPtr<MasterPTY>> try_create(unsigned index);
virtual ~MasterPTY() override;
unsigned index() const { return m_index; }