1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:47:45 +00:00

Everywhere: Fix a bunch of typos

This commit is contained in:
Linus Groh 2021-04-18 10:30:03 +02:00
parent cebd3f740b
commit 2b0c361d04
30 changed files with 42 additions and 42 deletions

View file

@ -82,7 +82,7 @@ bool VirtIOQueue::supply_buffer(Badge<VirtIODevice>, const ScatterGatherList& sc
last_index = descriptor_index;
descriptor_index = m_descriptors[descriptor_index].next; // ensure we place the buffer in chain order
});
m_descriptors[last_index].flags &= ~(VIRTQ_DESC_F_NEXT); // last descriptor in chain doesnt have a next descriptor
m_descriptors[last_index].flags &= ~(VIRTQ_DESC_F_NEXT); // last descriptor in chain doesn't have a next descriptor
m_driver->rings[m_driver_index_shadow % m_queue_size] = m_free_head; // m_driver_index_shadow is used to prevent accesses to index before the rings are updated
m_tokens[m_free_head] = token;
@ -139,7 +139,7 @@ void VirtIOQueue::pop_buffer(u16 descriptor_index)
m_free_buffers++;
i = m_descriptors[i].next;
}
m_free_buffers++; // the last descriptor in the chain doesnt have the NEXT flag
m_free_buffers++; // the last descriptor in the chain doesn't have the NEXT flag
m_descriptors[i].next = m_free_head; // empend the popped descriptors to the free chain
m_free_head = descriptor_index;