From fcbcde3666c1b25be188fbebeee057af21491cc4 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 14 Nov 2023 13:31:38 -0500 Subject: [PATCH] sched: proc: formatting fixes --- sched/proc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sched/proc.c b/sched/proc.c index ecb2ca9..17b8ce2 100644 --- a/sched/proc.c +++ b/sched/proc.c @@ -27,11 +27,10 @@ struct proc *proc_find(pid_t pid) { struct rbnode *proc_node = rbt_search(proc_tree, pid); - if (proc_node) { + if (proc_node) return (void *)proc_node->value; - } else { + else return NULL; - } } void schedule() @@ -40,7 +39,7 @@ void schedule() struct proc *proc = proc_find(proc_current[id]); - if(proc) { + if (proc) { _return_to_user(&proc->regs, proc->cr3); } else { kprintf(LOG_ERROR "proc: schedule: proc_current[%u] is NULL\n", id);