Remove else clause

This commit is contained in:
Chantara Tith 2016-06-29 01:55:37 +07:00
parent aaa2158dc3
commit 7851d9e93b
1 changed files with 3 additions and 3 deletions

View File

@ -386,10 +386,10 @@ qint64 PartitionTable::defaultFirstUsable(const Device& d, TableType t)
Q_UNUSED(t)
if (d.type() == Device::LVM_Device) {
return 0;
} else {
const DiskDevice& diskDevice = dynamic_cast<const DiskDevice&>(d);
return PartitionAlignment::sectorAlignment(diskDevice);
}
const DiskDevice& diskDevice = dynamic_cast<const DiskDevice&>(d);
return PartitionAlignment::sectorAlignment(diskDevice);
}
qint64 PartitionTable::defaultLastUsable(const Device& d, TableType t)