Merge "Removing should_flash_in_userspace check"

This commit is contained in:
Daniel Zheng 2023-05-30 15:34:50 +00:00 committed by Gerrit Code Review
commit 437fb0c606

View file

@ -214,11 +214,9 @@ std::unique_ptr<FlashSuperLayoutTask> FlashSuperLayoutTask::InitializeFromTasks(
for (const auto& task : tasks) {
if (auto flash_task = task->AsFlashTask()) {
if (should_flash_in_userspace(flash_task->GetPartitionAndSlot())) {
auto partition = flash_task->GetPartitionAndSlot();
if (!helper->AddPartition(partition, flash_task->GetImageName(), false)) {
return nullptr;
}
auto partition = flash_task->GetPartitionAndSlot();
if (!helper->AddPartition(partition, flash_task->GetImageName(), false)) {
return nullptr;
}
}
}