Move many loops over glcr::Vector to range-based loops.
This commit is contained in:
parent
c06d1741f3
commit
b2354ae341
7 changed files with 18 additions and 19 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue