summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-02-26 01:56:14 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-02-26 01:56:14 +0000
commit193655459bf16415007a77ff9c6199725e0de54d (patch)
treec2c699bc2bfc2e583176d42f63b54de983e79f5b
parente4ed96dd58b8b6b42017e8e65e37c663947649ca (diff)
downloadFreeBSD-src-193655459bf16415007a77ff9c6199725e0de54d.zip
FreeBSD-src-193655459bf16415007a77ff9c6199725e0de54d.tar.gz
Add a missing '!'.
-rw-r--r--sys/kern/kern_kse.c4
-rw-r--r--sys/kern/kern_thread.c4
2 files changed, 4 insertions, 4 deletions
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);
}
OpenPOWER on IntegriCloud