From 193655459bf16415007a77ff9c6199725e0de54d Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 26 Feb 2003 01:56:14 +0000 Subject: Add a missing '!'. --- sys/kern/kern_kse.c | 4 ++-- sys/kern/kern_thread.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index d410785..aa96b4e 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1600,8 +1600,8 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((kg->kg_completed == NULL) && (td->td_upcall->ku_flags & KUF_DOUPCALL) == 0) { thread_update_usr_ticks(td, 0); - if (kg->kg_completed || - (td->td_upcall->ku_flags & KUF_DOUPCALL)) { + if (!(kg->kg_completed || + (td->td_upcall->ku_flags & KUF_DOUPCALL))) { td->td_mailbox = NULL; return (0); } diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index d410785..aa96b4e 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1600,8 +1600,8 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((kg->kg_completed == NULL) && (td->td_upcall->ku_flags & KUF_DOUPCALL) == 0) { thread_update_usr_ticks(td, 0); - if (kg->kg_completed || - (td->td_upcall->ku_flags & KUF_DOUPCALL)) { + if (!(kg->kg_completed || + (td->td_upcall->ku_flags & KUF_DOUPCALL))) { td->td_mailbox = NULL; return (0); } -- cgit v1.1