Don't need to set retvals to 0 in the non error case. They
are set to a good default anyhow. Submitted by: davidxu@
This commit is contained in:
parent
5440b5a974
commit
3f5f24287f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108611
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user