sched: proc: formatting fixes

This commit is contained in:
Michael Shaw 2023-11-14 13:31:38 -05:00
commit fcbcde3666

View file

@ -27,11 +27,10 @@ struct proc *proc_find(pid_t pid)
{ {
struct rbnode *proc_node = rbt_search(proc_tree, pid); struct rbnode *proc_node = rbt_search(proc_tree, pid);
if (proc_node) { if (proc_node)
return (void *)proc_node->value; return (void *)proc_node->value;
} else { else
return NULL; return NULL;
}
} }
void schedule() void schedule()
@ -40,7 +39,7 @@ void schedule()
struct proc *proc = proc_find(proc_current[id]); struct proc *proc = proc_find(proc_current[id]);
if(proc) { if (proc) {
_return_to_user(&proc->regs, proc->cr3); _return_to_user(&proc->regs, proc->cr3);
} else { } else {
kprintf(LOG_ERROR "proc: schedule: proc_current[%u] is NULL\n", id); kprintf(LOG_ERROR "proc: schedule: proc_current[%u] is NULL\n", id);