[edk2-devel] [PATCH 1/1] NetworkPkg: Improve grammar in comment about MediaPresent in PxeReceive

Rebecca Cran quic_rcran at quicinc.com
Thu Dec 1 22:21:42 UTC 2022


Improve the grammar of the comment in PxeReceive about ensuring that
MediaPresent is set to the correct value.

Signed-off-by: Rebecca Cran <rebecca at quicinc.com>
---
 NetworkPkg/SnpDxe/Receive.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/NetworkPkg/SnpDxe/Receive.c b/NetworkPkg/SnpDxe/Receive.c
index 41601980f25f..6a1914b84ba5 100644
--- a/NetworkPkg/SnpDxe/Receive.c
+++ b/NetworkPkg/SnpDxe/Receive.c
@@ -126,10 +126,10 @@ PxeReceive (
   }
 
   //
-  // We have received a packet from network interface, which implies that the
-  // network cable should be present. While, some UNDI driver may not report
-  // correct media status during Snp->Initialize(). So, we need ensure
-  // MediaPresent in SNP mode data is set to correct value.
+  // We have received a packet from the network interface, which implies
+  // that the network cable should be present. Some UNDI drivers may not
+  // report correct media status during Snp->Initialize(), so we need to
+  // ensure MediaPresent in SNP mode data is set to the correct value.
   //
   if (Snp->Mode.MediaPresentSupported && !Snp->Mode.MediaPresent) {
     Snp->Mode.MediaPresent = TRUE;
-- 
2.30.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#96874): https://edk2.groups.io/g/devel/message/96874
Mute This Topic: https://groups.io/mt/95394608/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list