]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Network / MnpDxe / MnpIo.c
index ba0f36e710db712a2fc902ccea6d92949009609d..5c9eaf1a08c51dbf7628952893f06c0f4c972f95 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation of Managed Network Protocol I/O functions.\r
 \r
-Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The full\r
@@ -129,14 +129,14 @@ MnpBuildTxPacket (
   UINT16                  Index;\r
   MNP_DEVICE_DATA         *MnpDeviceData;\r
   UINT8                   *TxBuf;\r
-  \r
+\r
   MnpDeviceData = MnpServiceData->MnpDeviceData;\r
-  \r
+\r
   TxBuf = MnpAllocTxBuf (MnpDeviceData);\r
   if (TxBuf == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   //\r
   // Reserve space for vlan tag if needed.\r
   //\r
@@ -145,14 +145,14 @@ MnpBuildTxPacket (
   } else {\r
     *PktBuf = TxBuf;\r
   }\r
-  \r
+\r
   if ((TxData->DestinationAddress == NULL) && (TxData->FragmentCount == 1)) {\r
     CopyMem (\r
         *PktBuf,\r
         TxData->FragmentTable[0].FragmentBuffer,\r
         TxData->FragmentTable[0].FragmentLength\r
         );\r
-    \r
+\r
     *PktLen = TxData->FragmentTable[0].FragmentLength;\r
   } else {\r
     //\r
@@ -160,7 +160,7 @@ MnpBuildTxPacket (
     // one fragment, copy the data into the packet buffer. Reserve the\r
     // media header space if necessary.\r
     //\r
-    SnpMode = MnpDeviceData->Snp->Mode; \r
+    SnpMode = MnpDeviceData->Snp->Mode;\r
     DstPos  = *PktBuf;\r
     *PktLen = 0;\r
     if (TxData->DestinationAddress != NULL) {\r
@@ -195,7 +195,7 @@ MnpBuildTxPacket (
 \r
 \r
 /**\r
-  Synchronously send out the packet. \r
+  Synchronously send out the packet.\r
 \r
   This functon places the packet buffer to SNP driver's tansmit queue. The packet\r
   can be considered successfully sent out once SNP acccetp the packet, while the\r
@@ -245,7 +245,7 @@ MnpSyncSendPacket (
     goto SIGNAL_TOKEN;\r
   }\r
 \r
-  \r
+\r
   if (MnpServiceData->VlanId != 0) {\r
     //\r
     // Insert VLAN tag\r
@@ -282,9 +282,9 @@ MnpSyncSendPacket (
                     TxData->SourceAddress,\r
                     TxData->DestinationAddress,\r
                     &ProtocolType\r
-                    ); \r
+                    );\r
   }\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     Token->Status = EFI_DEVICE_ERROR;\r
   }\r