Skip to content
Snippets Groups Projects
Commit 7caf4443 authored by Avi Kivity's avatar Avi Kivity
Browse files

interrupt manager: use range-based for loop instead of manually looping

parent 3d4f7047
No related branches found
No related tags found
No related merge requests found
...@@ -35,16 +35,14 @@ unsigned msix_vector::get_vector(void) ...@@ -35,16 +35,14 @@ unsigned msix_vector::get_vector(void)
void msix_vector::msix_unmask_entries(void) void msix_vector::msix_unmask_entries(void)
{ {
for (auto it=_entryids.begin(); it != _entryids.end(); it++) { for (auto entry_id : _entryids) {
int entry_id = (int)*it;
_dev->msix_unmask_entry(entry_id); _dev->msix_unmask_entry(entry_id);
} }
} }
void msix_vector::msix_mask_entries(void) void msix_vector::msix_mask_entries(void)
{ {
for (auto it=_entryids.begin(); it != _entryids.end(); it++) { for (auto entry_id : _entryids) {
int entry_id = (int)*it;
_dev->msix_mask_entry(entry_id); _dev->msix_mask_entry(entry_id);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment