From 9ae278b07727d7fd31c28e8e3b759d0dfe41c810 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Tue, 25 Aug 2015 15:33:09 +0000 Subject: Code cleanup unused-but-set-variable spotted by gcc. Approved by: bapt (mentor) Differential Revision: D3475 --- sbin/newfs/newfs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sbin/newfs') diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 658bd427d7a0..1f8e4d358fdf 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -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); -- cgit v1.2.3