From 69baeadc31a7c6a0fb7d57df2ef2b57b1cc2259e Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 29 May 2015 13:24:17 +0000 Subject: 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 --- sys/kern/vfs_cluster.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/vfs_cluster.c') 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); -- cgit v1.2.3