From 945b980e1a61b3444dbfbaae4b0351a870c59995 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Tue, 7 Jul 2020 13:12:05 +0100 Subject: [PATCH] kvm: Fix typos. BUG=None TEST=cargo test Change-Id: Id731f8087b391319329eca1f59bee906f3046bdd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2283337 Commit-Queue: Zach Reizner Auto-Submit: Andrew Walbran Tested-by: Zach Reizner Reviewed-by: Zach Reizner --- kvm/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kvm/src/lib.rs b/kvm/src/lib.rs index a05bde7dc1..237b9a7e31 100644 --- a/kvm/src/lib.rs +++ b/kvm/src/lib.rs @@ -1616,8 +1616,7 @@ impl Vcpu { } /// Specifies set of signals that are blocked during execution of KVM_RUN. - /// Signals that are not blocked will will cause KVM_RUN to return - /// with -EINTR. + /// Signals that are not blocked will cause KVM_RUN to return with -EINTR. /// /// See the documentation for KVM_SET_SIGNAL_MASK pub fn set_signal_mask(&self, signals: &[c_int]) -> Result<()> { @@ -1660,7 +1659,7 @@ impl Vcpu { id: reg_id, addr: data_ref as u64, }; - // safe becuase we allocated the struct and we know the kernel will read + // safe because we allocated the struct and we know the kernel will read // exactly the size of the struct let ret = unsafe { ioctl_with_ref(self, KVM_SET_ONE_REG(), &onereg) }; if ret < 0 {