aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-05-29 13:24:17 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-05-29 13:24:17 +0000
commit69baeadc31a7c6a0fb7d57df2ef2b57b1cc2259e (patch)
treec8c8cba4f0c624f3f4b5849c24f18e203d98409e /sys/kern/vfs_cluster.c
parent4e870f943f1448dde876ac2c376a2aa531ea9370 (diff)
downloadsrc-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_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 960108253e72..362ebb7ba671 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -310,7 +310,6 @@ static struct buf *
cluster_rbuild(struct vnode *vp, u_quad_t filesize, daddr_t lbn,
daddr_t blkno, long size, int run, int gbflags, struct buf *fbp)
{
- struct bufobj *bo;
struct buf *bp, *tbp;
daddr_t bn;
off_t off;
@@ -376,7 +375,6 @@ cluster_rbuild(struct vnode *vp, u_quad_t filesize, daddr_t lbn,
bp->b_npages = 0;
inc = btodb(size);
- bo = &vp->v_bufobj;
for (bn = blkno, i = 0; i < run; ++i, bn += inc) {
if (i == 0) {
VM_OBJECT_WLOCK(tbp->b_bufobj->bo_object);