Move many loops over glcr::Vector to range-based loops.

This commit is contained in:
Drew Galbraith 2024-01-11 17:13:35 -08:00
parent c06d1741f3
commit b2354ae341
7 changed files with 18 additions and 19 deletions

View file

@ -39,8 +39,8 @@ glcr::Status DenaliServer::HandleReadMany(const ReadManyRequest& req,
}
uint64_t sector_cnt = 0;
for (uint64_t i = 0; i < req.sector_cnt().size(); i++) {
sector_cnt += req.sector_cnt().at(i);
for (uint64_t cnt : req.sector_cnt()) {
sector_cnt += cnt;
}
uint64_t region_paddr;
mmth::OwnedMemoryRegion region = mmth::OwnedMemoryRegion::ContiguousPhysical(