git: e349fcc80aa2 - stable/13 - Eliminate set but not used variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Jul 2022 21:46:28 UTC
The branch stable/13 has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=e349fcc80aa2050adc38318685c3654e831cefbf commit e349fcc80aa2050adc38318685c3654e831cefbf Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2022-06-28 04:37:09 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2022-07-08 21:46:16 +0000 Eliminate set but not used variable. No functional change intended. (cherry picked from commit 78dfcf256a443df2a43bdfcce6b7d7af143d964f) --- 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.