svn commit: r287131 - head/sbin/newfs
Marcelo Araujo
araujo at FreeBSD.org
Tue Aug 25 15:33:10 UTC 2015
Author: araujo
Date: Tue Aug 25 15:33:09 2015
New Revision: 287131
URL: https://svnweb.freebsd.org/changeset/base/287131
Log:
Code cleanup unused-but-set-variable spotted by gcc.
Approved by: bapt (mentor)
Differential Revision: D3475
Modified:
head/sbin/newfs/newfs.c
Modified: head/sbin/newfs/newfs.c
==============================================================================
--- head/sbin/newfs/newfs.c Tue Aug 25 15:32:08 2015 (r287130)
+++ head/sbin/newfs/newfs.c Tue Aug 25 15:33:09 2015 (r287131)
@@ -130,7 +130,6 @@ main(int argc, char *argv[])
{
struct partition *pp;
struct disklabel *lp;
- struct partition oldpartition;
struct stat st;
char *cp, *special;
intmax_t reserved;
@@ -362,7 +361,6 @@ main(int argc, char *argv[])
pp = &lp->d_partitions[RAW_PART];
else
pp = &lp->d_partitions[*cp - 'a'];
- oldpartition = *pp;
if (pp->p_size == 0)
errx(1, "%s: `%c' partition is unavailable",
special, *cp);
More information about the svn-src-all
mailing list