aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-02-26 15:51:54 +0000
committerEd Schouten <ed@FreeBSD.org>2009-02-26 15:51:54 +0000
commitc90c9021e94dd95b34bb48c3f8bb29761379a8d8 (patch)
treed89376ead0217f0b0f64e8d12308efc93860e35a /sys/kern/kern_exit.c
parent34a839f1085b64b2c508f0ecba1749b930624796 (diff)
downloadsrc-c90c9021e94dd95b34bb48c3f8bb29761379a8d8.tar.gz
src-c90c9021e94dd95b34bb48c3f8bb29761379a8d8.zip
Remove even more unneeded variable assignments.
kern_time.c: - Unused variable `p'. kern_thr.c: - Variable `error' is always caught immediately, so no reason to initialize it. There is no way that error != 0 at the end of create_thread(). kern_sig.c: - Unused variable `code'. kern_synch.c: - `rval' is always assigned in all different cases. kern_rwlock.c: - `v' is always overwritten with RW_UNLOCKED further on. kern_malloc.c: - `size' is always initialized with the proper value before being used. kern_exit.c: - `error' is always caught and returned immediately. abort2() never returns a non-zero value. kern_exec.c: - `len' is always assigned inside the if-statement right below it. tty_info.c: - `td' is always overwritten by FOREACH_THREAD_IN_PROC(). Found by: LLVM's scan-build
Notes
Notes: svn path=/head/; revision=189074
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 4b4a417262ed..425573474b9b 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -585,8 +585,6 @@ abort2(struct thread *td, struct abort2_args *uap)
void *uargs[16];
int error, i, sig;
- error = 0; /* satisfy compiler */
-
/*
* Do it right now so we can log either proper call of abort2(), or
* note, that invalid argument was passed. 512 is big enough to