No need for 'else' after return.
This commit is contained in:
@@ -1475,7 +1475,8 @@ BlockAllocator::CheckNextNode(check_control* control)
|
|||||||
// TODO: maybe have a force parameter that actually does that.
|
// TODO: maybe have a force parameter that actually does that.
|
||||||
// TODO: we also need to be able to repair broken B+trees!
|
// TODO: we also need to be able to repair broken B+trees!
|
||||||
return status;
|
return status;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
// ignore "." and ".." entries
|
// ignore "." and ".." entries
|
||||||
if (!strcmp(name, ".") || !strcmp(name, ".."))
|
if (!strcmp(name, ".") || !strcmp(name, ".."))
|
||||||
continue;
|
continue;
|
||||||
@@ -1517,6 +1518,7 @@ BlockAllocator::CheckNextNode(check_control* control)
|
|||||||
// Rename the inode
|
// Rename the inode
|
||||||
Transaction transaction(fVolume, inode->BlockNumber());
|
Transaction transaction(fVolume, inode->BlockNumber());
|
||||||
|
|
||||||
|
// TODO: this may potentially need new blocks!
|
||||||
status = inode->SetName(transaction, name);
|
status = inode->SetName(transaction, name);
|
||||||
if (status == B_OK)
|
if (status == B_OK)
|
||||||
status = inode->WriteBack(transaction);
|
status = inode->WriteBack(transaction);
|
||||||
@@ -1568,7 +1570,6 @@ BlockAllocator::CheckNextNode(check_control* control)
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// is never reached
|
// is never reached
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user