mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Code cleanup unused-but-set-variable spotted by gcc.
Approved by: bapt (mentor) Differential Revision: D3475
This commit is contained in:
parent
b7684f4b85
commit
9ae278b077
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue