diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-02-26 15:51:54 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-02-26 15:51:54 +0000 |
| commit | c90c9021e94dd95b34bb48c3f8bb29761379a8d8 (patch) | |
| tree | d89376ead0217f0b0f64e8d12308efc93860e35a /sys/kern/kern_thr.c | |
| parent | 34a839f1085b64b2c508f0ecba1749b930624796 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_thr.c')
| -rw-r--r-- | sys/kern/kern_thr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 3802259c047f..4059443194be 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, |
