summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 3802259..4059443 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -149,7 +149,6 @@ create_thread(struct thread *td, mcontext_t *ctx,
struct proc *p;
int error;
- error = 0;
p = td->td_proc;
/* Have race condition but it is cheap. */
@@ -253,7 +252,7 @@ create_thread(struct thread *td, mcontext_t *ctx,
sched_add(newtd, SRQ_BORING);
thread_unlock(newtd);
- return (error);
+ return (0);
}
int
@@ -403,7 +402,6 @@ thr_suspend(struct thread *td, struct thr_suspend_args *uap)
struct timespec ts, *tsp;
int error;
- error = 0;
tsp = NULL;
if (uap->timeout != NULL) {
error = copyin((const void *)uap->timeout, (void *)&ts,
OpenPOWER on IntegriCloud