diff options
author | julian <julian@FreeBSD.org> | 2003-01-03 19:38:54 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-01-03 19:38:54 +0000 |
commit | 7bb9b765555a41e6949a40a5814704acf8bc5764 (patch) | |
tree | 52dd27ec34af0ff5e98c2c0f201bbbf387170d5f /sys/kern/kern_thread.c | |
parent | bb9d453ab0d032db4e8cbf002e930ea143910da6 (diff) | |
download | FreeBSD-src-7bb9b765555a41e6949a40a5814704acf8bc5764.zip FreeBSD-src-7bb9b765555a41e6949a40a5814704acf8bc5764.tar.gz |
Don't need to set retvals to 0 in the non error case. They
are set to a good default anyhow.
Submitted by: davidxu@
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 166e688..53a09af 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); } |