summaryrefslogtreecommitdiff
path: root/gpttext.cc
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2021-03-17 21:57:12 -0400
committerRod Smith <rodsmith@rodsbooks.com>2021-03-17 21:59:18 -0400
commiteae9f7e2e1470ed2d5bc029180aa2adc88fbc4a7 (patch)
treedd82bf5ca410609032f73fe888a56d9f29ee3c93 /gpttext.cc
parent80e66b25922ab78cf987f693bf5477e466b1443a (diff)
downloadsgdisk-eae9f7e2e1470ed2d5bc029180aa2adc88fbc4a7.tar.gz
Code cleanup based on 'infer' suggestions; mostly just dead stores.
One forgotten change
Diffstat (limited to 'gpttext.cc')
-rw-r--r--gpttext.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpttext.cc b/gpttext.cc
index ea34444..505f006 100644
--- a/gpttext.cc
+++ b/gpttext.cc
@@ -251,7 +251,7 @@ void GPTDataTextUI::CreatePartition(void) {
} while (IsFree(sector) == 0);
lastBlock = sector;
- firstFreePart = GPTData::CreatePartition(partNum, firstBlock, lastBlock);
+ GPTData::CreatePartition(partNum, firstBlock, lastBlock);
partitions[partNum].ChangeType();
partitions[partNum].SetDefaultDescription();
} else {