From f9c1ceb309a85226b950c05e31f0f3cb1614dd4d Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 12 Jul 2022 22:25:46 +0200 Subject: remove the incorrect OPEN_CREATE guards in fs drivers --- src/kernel/arch/i386/driver/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/i386/driver/serial.c') diff --git a/src/kernel/arch/i386/driver/serial.c b/src/kernel/arch/i386/driver/serial.c index 7a727a8..d339484 100644 --- a/src/kernel/arch/i386/driver/serial.c +++ b/src/kernel/arch/i386/driver/serial.c @@ -72,7 +72,7 @@ static void accept(struct vfs_request *req) { bool valid; switch (req->type) { case VFSOP_OPEN: - valid = req->input.len == 0 && !(req->flags & OPEN_CREATE); + valid = req->input.len == 0; vfsreq_finish_short(req, valid ? 0 : -1); break; case VFSOP_READ: -- cgit v1.2.3