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/vfs_init.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/vfs_init.c')
-rw-r--r-- | sys/kern/vfs_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index cf3928ee91e4..f935954fcef2 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -311,9 +311,7 @@ static int vfs_unregister(struct vfsconf *vfc) { struct vfsconf *vfsp; - int error, i, maxtypenum; - - i = vfc->vfc_typenum; + int error, maxtypenum; vfsconf_lock(); vfsp = vfs_byname_locked(vfc->vfc_name); |