Code cleanup unused-but-set-variable spotted by gcc.

Approved by:	bapt (mentor)
Differential Revision:	D3475
This commit is contained in:
Marcelo Araujo 2015-08-25 15:33:09 +00:00
parent b7684f4b85
commit 9ae278b077

View file

@ -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);