diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2015-05-29 13:24:17 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2015-05-29 13:24:17 +0000 |
commit | 69baeadc31a7c6a0fb7d57df2ef2b57b1cc2259e (patch) | |
tree | c8c8cba4f0c624f3f4b5849c24f18e203d98409e /sys/kern/kern_exit.c | |
parent | 4e870f943f1448dde876ac2c376a2aa531ea9370 (diff) | |
download | src-69baeadc31a7c6a0fb7d57df2ef2b57b1cc2259e.tar.gz src-69baeadc31a7c6a0fb7d57df2ef2b57b1cc2259e.zip |
Remove several write-only variables, all reported by the gcc 4.9
buildkernel run.
Some of them were write-only under some kernel options, e.g. variables
keeping values only used by CTR() macros. It costs nothing to the
code readability and correctness to eliminate the warnings in those
cases too by removing the local cached values used only for
single-access.
Review: https://reviews.freebsd.org/D2665
Reviewed by: rodrigc
Looked at by: bjk
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=283735
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index a2742c2cb8e3..9ce6d343c1f4 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -964,12 +964,10 @@ proc_to_reap(struct thread *td, struct proc *p, idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *siginfo, int check_only) { - struct proc *q; struct rusage *rup; sx_assert(&proctree_lock, SA_XLOCKED); - q = td->td_proc; PROC_LOCK(p); switch (idtype) { |