From 9854561c085df43139625aa275dd67144c75e432 Mon Sep 17 00:00:00 2001 From: Antoine Coeur Date: Fri, 7 Feb 2020 02:08:11 +0100 Subject: [PATCH] OvmfPkg/Virtio: Fix few typos Fix few typos in comments and documentation. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Laszlo Ersek Signed-off-by: Philippe Mathieu-Daude Message-Id: <20200207010831.9046-59-philmd@redhat.com> --- OvmfPkg/Include/Library/VirtioLib.h | 2 +- OvmfPkg/Library/VirtioLib/VirtioLib.c | 2 +- OvmfPkg/VirtioNetDxe/DriverBinding.c | 2 +- OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c | 2 +- OvmfPkg/VirtioRngDxe/VirtioRng.c | 2 +- OvmfPkg/VirtioScsiDxe/VirtioScsi.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OvmfPkg/Include/Library/VirtioLib.h b/OvmfPkg/Include/Library/VirtioLib.h index e817a4206f..e714ec7aee 100644 --- a/OvmfPkg/Include/Library/VirtioLib.h +++ b/OvmfPkg/Include/Library/VirtioLib.h @@ -292,7 +292,7 @@ Virtio10WriteFeatures ( VIRTIO_UNMAP_SHARED. - @retval EFI_SUCCESS The NumberOfBytes is succesfully mapped. + @retval EFI_SUCCESS The NumberOfBytes is successfully mapped. @retval EFI_UNSUPPORTED The HostAddress cannot be mapped as a common buffer. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. diff --git a/OvmfPkg/Library/VirtioLib/VirtioLib.c b/OvmfPkg/Library/VirtioLib/VirtioLib.c index 555d2a5ce7..e09324813c 100644 --- a/OvmfPkg/Library/VirtioLib/VirtioLib.c +++ b/OvmfPkg/Library/VirtioLib/VirtioLib.c @@ -452,7 +452,7 @@ Virtio10WriteFeatures ( VIRTIO_UNMAP_SHARED. - @retval EFI_SUCCESS The NumberOfBytes is succesfully mapped. + @retval EFI_SUCCESS The NumberOfBytes is successfully mapped. @retval EFI_UNSUPPORTED The HostAddress cannot be mapped as a common buffer. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. diff --git a/OvmfPkg/VirtioNetDxe/DriverBinding.c b/OvmfPkg/VirtioNetDxe/DriverBinding.c index eb0e873657..3c400a6046 100644 --- a/OvmfPkg/VirtioNetDxe/DriverBinding.c +++ b/OvmfPkg/VirtioNetDxe/DriverBinding.c @@ -419,7 +419,7 @@ VirtioNetDriverBindingSupported ( device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. **/ diff --git a/OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c b/OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c index dc684650d6..d1e3ecfa5a 100644 --- a/OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c +++ b/OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c @@ -118,7 +118,7 @@ VirtioNetUninitRing ( a lack of resources. @return Status codes from VirtioMapAllBytesInSharedBuffer() - @retval EFI_SUCCESS Caller-supplied buffer is succesfully mapped. + @retval EFI_SUCCESS Caller-supplied buffer is successfully mapped. */ EFI_STATUS EFIAPI diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.c b/OvmfPkg/VirtioRngDxe/VirtioRng.c index d0e2468c23..4e2b710f9e 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.c +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.c @@ -156,7 +156,7 @@ VirtioRngGetRNG ( Dev = VIRTIO_ENTROPY_SOURCE_FROM_RNG (This); // - // Map Buffer's system phyiscal address to device address + // Map Buffer's system physical address to device address // Status = VirtioMapAllBytesInSharedBuffer ( Dev->VirtIo, diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c index e50a697daa..935d154395 100644 --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c @@ -497,7 +497,7 @@ VirtioScsiPassThru ( // * we perform the request fine // * but we fail to unmap the "InDataMapping" // - // In that case simply returing the EFI_DEVICE_ERROR is not sufficient. In + // In that case simply returning the EFI_DEVICE_ERROR is not sufficient. In // addition to the error code we also need to update Packet fields // accordingly so that we report the full loss of the incoming transfer. //