]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Wrq.c
index 438659a76e762965bfc271be6f2b0fb3dbfc6d39..cf1d50fe4056020c87078496960260d358069e3d 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
   Routines to process Wrq (upload).\r
-  \r
+\r
 Copyright (c) 2006 - 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 of the BSD License\r
@@ -124,9 +124,9 @@ Mtftp4WrqSendBlock (
 \r
 \r
 /**\r
-  Function to handle received ACK packet. \r
-  \r
-  If the ACK number matches the expected block number, and there are more \r
+  Function to handle received ACK packet.\r
+\r
+  If the ACK number matches the expected block number, and there are more\r
   data pending, send the next block. Otherwise tell the caller that we are done.\r
 \r
   @param  Instance              The MTFTP upload session\r
@@ -150,7 +150,7 @@ Mtftp4WrqHandleAck (
   UINT16                    AckNum;\r
   INTN                      Expected;\r
   UINT64                    TotalBlock;\r
\r
+\r
   *Completed  = FALSE;\r
   AckNum      = NTOHS (Packet->Ack.Block[0]);\r
   Expected    = Mtftp4GetNextBlockNum (&Instance->Blocks);\r
@@ -175,7 +175,7 @@ Mtftp4WrqHandleAck (
   Expected = Mtftp4GetNextBlockNum (&Instance->Blocks);\r
 \r
   if (Expected < 0) {\r
-  \r
+\r
     //\r
     // The block range is empty. It may either because the the last\r
     // block has been ACKed, or the sequence number just looped back,\r
@@ -202,8 +202,8 @@ Mtftp4WrqHandleAck (
 \r
 \r
 /**\r
-  Check whether the received OACK is valid. \r
-  \r
+  Check whether the received OACK is valid.\r
+\r
   The OACK is valid only if:\r
   1. It only include options requested by us\r
   2. It can only include a smaller block size\r
@@ -244,8 +244,8 @@ Mtftp4WrqOackValid (
 \r
 \r
 /**\r
-  Function to handle the MTFTP OACK packet. \r
-  \r
+  Function to handle the MTFTP OACK packet.\r
+\r
   It parses the packet's options, and update the internal states of the session.\r
 \r
   @param  Instance              The MTFTP session\r
@@ -458,7 +458,7 @@ Mtftp4WrqInput (
   case EFI_MTFTP4_OPCODE_ERROR:\r
     Status = EFI_TFTP_ERROR;\r
     break;\r
-    \r
+\r
   default:\r
     break;\r
   }\r
@@ -492,8 +492,8 @@ ON_EXIT:
 \r
 /**\r
   Start the MTFTP session for upload.\r
-  \r
-  It will first init some states, then send the WRQ request packet, \r
+\r
+  It will first init some states, then send the WRQ request packet,\r
   and start receiving the packet.\r
 \r
   @param  Instance              The MTFTP session\r