]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
EmbeddedPkg: Fix various typos
[mirror_edk2.git] / EmbeddedPkg / Drivers / Lan9118Dxe / Lan9118Dxe.c
index 8af23df394f63744f8653914a3655291366191ae..a0fca4d6a335308f241e37efe473421de1d27244 100644 (file)
@@ -2,13 +2,7 @@
 *\r
 *  Copyright (c) 2012-2014, ARM Limited. All rights reserved.\r
 *\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 *\r
 **/\r
 \r
@@ -1055,6 +1049,8 @@ SnpGetStatus (
       LanDriver->Stats.TxTotalFrames += 1;\r
       *TxBuff = LanDriver->TxRing[PacketTag % LAN9118_TX_RING_NUM_ENTRIES];\r
     }\r
+  } else if (TxBuff != NULL) {\r
+    *TxBuff = NULL;\r
   }\r
 \r
   // Check for a TX Error interrupt\r
@@ -1443,7 +1439,7 @@ SnpReceive (
     return EFI_BUFFER_TOO_SMALL;\r
   }\r
 \r
-  // Set the amount of data to be transfered out of FIFO for THIS packet\r
+  // Set the amount of data to be transferred out of FIFO for THIS packet\r
   // This can be used to trigger an interrupt, and status can be checked\r
   RxCfgValue = Lan9118MmioRead32 (LAN9118_RX_CFG);\r
   RxCfgValue &= ~(RXCFG_RX_DMA_CNT_MASK);\r
@@ -1514,7 +1510,7 @@ SnpReceive (
     }\r
 \r
     //\r
-    // Restart the receiver and the transmitter without reseting the FIFOs\r
+    // Restart the receiver and the transmitter without resetting the FIFOs\r
     // as it has been done by SoftReset().\r
     //\r
     StartRx (0, Snp);\r