*\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
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
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
}\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