Fix the return values of DmTable::valid to match the expected type
Test: make libdm Change-Id: Id2be81eafe5168be9bfb37a5bcabfbdba3de8fa7
This commit is contained in:
parent
1f7c08e241
commit
2da7808bad
1 changed files with 2 additions and 2 deletions
|
|
@ -38,11 +38,11 @@ bool DmTable::RemoveTarget(std::unique_ptr<DmTarget>&& /* target */) {
|
|||
bool DmTable::valid() const {
|
||||
if (targets_.empty()) {
|
||||
LOG(ERROR) << "Device-mapper table must have at least one target.";
|
||||
return "";
|
||||
return false;
|
||||
}
|
||||
if (targets_[0]->start() != 0) {
|
||||
LOG(ERROR) << "Device-mapper table must start at logical sector 0.";
|
||||
return "";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue