Skip to content

Commit

Permalink
chore: remove repetitive words
Browse files Browse the repository at this point in the history
Remove redundant words to make comments coherent

Signed-off-by: one230six <[email protected]>
  • Loading branch information
one230six authored and roypat committed Mar 13, 2024
1 parent c89ecac commit b2eee19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vmm/src/cpu_config/x86_64/cpuid/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum GetCpuidError {
/// # Errors
///
/// - When the given `leaf` is more than `max_leaf` supported by CPUID.
/// - When the the CPUID leaf `sub-leaf` is invalid (all its register equal 0).
/// - When the CPUID leaf `sub-leaf` is invalid (all its register equal 0).
pub fn get_cpuid(leaf: u32, subleaf: u32) -> Result<std::arch::x86_64::CpuidResult, GetCpuidError> {
let max_leaf =
// JUSTIFICATION: There is no safe alternative.
Expand Down
2 changes: 1 addition & 1 deletion src/vmm/src/devices/virtio/balloon/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ impl Balloon {
}
}

/// Update the the statistics polling interval.
/// Update the statistics polling interval.
pub fn update_stats_polling_interval(&mut self, interval_s: u16) -> Result<(), BalloonError> {
if self.stats_polling_interval_s == interval_s {
return Ok(());
Expand Down
4 changes: 2 additions & 2 deletions src/vmm/src/devices/virtio/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<'a, M: GuestMemory> DescriptorChain<'a, M> {
/// If the driver designated this as a write only descriptor.
///
/// If this is false, this descriptor is read only.
/// Write only means the the emulated device can write and the driver can read.
/// Write only means the emulated device can write and the driver can read.
pub fn is_write_only(&self) -> bool {
self.flags & VIRTQ_DESC_F_WRITE != 0
}
Expand Down Expand Up @@ -1102,7 +1102,7 @@ mod tests {
vq.dtable[0].addr.set(0x1000);
vq.dtable[0].len.set(0x1000);
vq.dtable[0].flags.set(VIRTQ_DESC_F_NEXT);
// .. but the the index of the next descriptor is too large
// .. but the index of the next descriptor is too large
vq.dtable[0].next.set(16);

assert!(DescriptorChain::checked_new(m, vq.dtable_start(), 16, 0).is_none());
Expand Down
2 changes: 1 addition & 1 deletion src/vmm/src/io_uring/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ mod tests {
file_sync.write_all_at(&init_contents, 0).unwrap();

// Create a custom test runner since we had to add some state buildup to the test.
// (Referring to the the above initializations).
// (Referring to the above initializations).
let mut runner = TestRunner::new(Config {
#[cfg(target_arch = "x86_64")]
cases: 1000, // Should run for about a minute.
Expand Down

0 comments on commit b2eee19

Please sign in to comment.