git: 78dfcf256a44 - main - Eliminate set but not used variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jun 2022 04:48:38 UTC
The branch main has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=78dfcf256a443df2a43bdfcce6b7d7af143d964f commit 78dfcf256a443df2a43bdfcce6b7d7af143d964f Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2022-06-28 04:37:09 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2022-06-28 04:48:24 +0000 Eliminate set but not used variable. No functional change intended. --- sbin/growfs/growfs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 1f1bcf82c965..6a57924fb7bc 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -560,7 +560,7 @@ static void updjcg(int cylno, time_t modtime, int fsi, int fso, unsigned int Nflag) { DBG_FUNC("updjcg") - ufs2_daddr_t cbase, dmax, dupper; + ufs2_daddr_t cbase, dmax; struct csum *cs; int i, k; int j = 0; @@ -607,9 +607,6 @@ updjcg(int cylno, time_t modtime, int fsi, int fso, unsigned int Nflag) dmax = cbase + sblock.fs_fpg; if (dmax > sblock.fs_size) dmax = sblock.fs_size; - dupper = cgdmin(&sblock, cylno) - cbase; - if (cylno == 0) /* XXX fscs may be relocated */ - dupper += howmany(sblock.fs_cssize, sblock.fs_fsize); /* * Set pointer to the cylinder summary for our cylinder group.