Missed some empty lines
This commit is contained in:
parent
2dd3a23092
commit
b0e1b8a2b2
@ -152,14 +152,12 @@ void sys_close(Context* context, int fd)
|
||||
{
|
||||
if (fd >= TASK_MAX_FDS || fd < 0)
|
||||
{
|
||||
|
||||
context->rax = -EBADF;
|
||||
return;
|
||||
}
|
||||
Task* current_task = Scheduler::current_task();
|
||||
if (!current_task->files[fd].is_open())
|
||||
{
|
||||
|
||||
context->rax = -EBADF;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user