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: we also need to be able to repair broken B+trees!
|
||||
return status;
|
||||
} else {
|
||||
}
|
||||
|
||||
// ignore "." and ".." entries
|
||||
if (!strcmp(name, ".") || !strcmp(name, ".."))
|
||||
continue;
|
||||
@@ -1517,6 +1518,7 @@ BlockAllocator::CheckNextNode(check_control* control)
|
||||
// Rename the inode
|
||||
Transaction transaction(fVolume, inode->BlockNumber());
|
||||
|
||||
// TODO: this may potentially need new blocks!
|
||||
status = inode->SetName(transaction, name);
|
||||
if (status == B_OK)
|
||||
status = inode->WriteBack(transaction);
|
||||
@@ -1568,7 +1570,6 @@ BlockAllocator::CheckNextNode(check_control* control)
|
||||
return B_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
// is never reached
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user