From 3f5f24287f139ebf9a752dd4ef365ab5c04062eb Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Fri, 3 Jan 2003 19:38:54 +0000 Subject: [PATCH] Don't need to set retvals to 0 in the non error case. They are set to a good default anyhow. Submitted by: davidxu@ --- sys/kern/kern_kse.c | 9 --------- sys/kern/kern_thread.c | 9 --------- 2 files changed, 18 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 166e688aa622..53a09af5cf38 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -301,8 +301,6 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap) abortsleep(td2); } mtx_unlock_spin(&sched_lock); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } } @@ -410,8 +408,6 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) if (!TD_IS_IDLE(td2)) { /* Return silently if no longer idle */ PROC_UNLOCK(p); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } break; @@ -439,8 +435,6 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) TD_CLR_IDLE(td2); setrunnable(td2); mtx_unlock_spin(&sched_lock); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } mtx_unlock_spin(&sched_lock); @@ -566,9 +560,6 @@ kse_create(struct thread *td, struct kse_create_args *uap) /* * Fill out the KSE-mode specific fields of the new kse. */ - - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 166e688aa622..53a09af5cf38 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -301,8 +301,6 @@ kse_thr_interrupt(struct thread *td, struct kse_thr_interrupt_args *uap) abortsleep(td2); } mtx_unlock_spin(&sched_lock); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } } @@ -410,8 +408,6 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) if (!TD_IS_IDLE(td2)) { /* Return silently if no longer idle */ PROC_UNLOCK(p); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } break; @@ -439,8 +435,6 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) TD_CLR_IDLE(td2); setrunnable(td2); mtx_unlock_spin(&sched_lock); - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); } mtx_unlock_spin(&sched_lock); @@ -566,9 +560,6 @@ kse_create(struct thread *td, struct kse_create_args *uap) /* * Fill out the KSE-mode specific fields of the new kse. */ - - td->td_retval[0] = 0; - td->td_retval[1] = 0; return (0); }