MdeModulePkg: Remove trailing white space

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1144

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
Star Zeng
2018-09-05 09:03:32 +08:00
parent fa6e2804de
commit 4a76d9b9a3
7 changed files with 29 additions and 29 deletions

View File

@ -143,7 +143,7 @@ ConvertPointerInRanges (
Migrate Single PPI Pointer from the temporary memory to PEI installed memory. Migrate Single PPI Pointer from the temporary memory to PEI installed memory.
@param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size
and location of temporary RAM, the stack location and the BFV location. and location of temporary RAM, the stack location and the BFV location.
@param PrivateData Pointer to PeiCore's private data structure. @param PrivateData Pointer to PeiCore's private data structure.
@param PpiPointer Pointer to Ppi @param PpiPointer Pointer to Ppi
@ -179,7 +179,7 @@ ConvertSinglePpiPointer (
Migrate PPI Pointers from the temporary memory to PEI installed memory. Migrate PPI Pointers from the temporary memory to PEI installed memory.
@param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size
and location of temporary RAM, the stack location and the BFV location. and location of temporary RAM, the stack location and the BFV location.
@param PrivateData Pointer to PeiCore's private data structure. @param PrivateData Pointer to PeiCore's private data structure.

View File

@ -424,7 +424,7 @@ NetGetIpClass (
except when the originator is one of the endpoints of a point-to-point link with a 31-bit except when the originator is one of the endpoints of a point-to-point link with a 31-bit
mask (RFC3021), or a 32bit NetMask (all 0xFF) is used for special network environment (e.g. mask (RFC3021), or a 32bit NetMask (all 0xFF) is used for special network environment (e.g.
PPP link). PPP link).
@param[in] Ip The IP to check against. @param[in] Ip The IP to check against.
@param[in] NetMask The mask of the IP. @param[in] NetMask The mask of the IP.

View File

@ -765,7 +765,7 @@ GetFmpHandleBufferByType (
MatchedHandleBuffer[MatchedNumberOfHandles] = HandleBuffer[Index]; MatchedHandleBuffer[MatchedNumberOfHandles] = HandleBuffer[Index];
} }
if (MatchedResetRequiredBuffer != NULL) { if (MatchedResetRequiredBuffer != NULL) {
MatchedResetRequiredBuffer[MatchedNumberOfHandles] = (((TempFmpImageInfo->AttributesSupported & MatchedResetRequiredBuffer[MatchedNumberOfHandles] = (((TempFmpImageInfo->AttributesSupported &
IMAGE_ATTRIBUTE_RESET_REQUIRED) != 0) && IMAGE_ATTRIBUTE_RESET_REQUIRED) != 0) &&
((TempFmpImageInfo->AttributesSetting & ((TempFmpImageInfo->AttributesSetting &
IMAGE_ATTRIBUTE_RESET_REQUIRED) != 0)); IMAGE_ATTRIBUTE_RESET_REQUIRED) != 0));

View File

@ -656,7 +656,7 @@ NetGetIpClass (
except when the originator is one of the endpoints of a point-to-point link with a 31-bit except when the originator is one of the endpoints of a point-to-point link with a 31-bit
mask (RFC3021), or a 32bit NetMask (all 0xFF) is used for special network environment (e.g. mask (RFC3021), or a 32bit NetMask (all 0xFF) is used for special network environment (e.g.
PPP link). PPP link).
@param[in] Ip The IP to check against. @param[in] Ip The IP to check against.
@param[in] NetMask The mask of the IP. @param[in] NetMask The mask of the IP.
@ -671,7 +671,7 @@ NetIp4IsUnicast (
) )
{ {
INTN MaskLength; INTN MaskLength;
ASSERT (NetMask != 0); ASSERT (NetMask != 0);
if (Ip == 0 || IP4_IS_LOCAL_BROADCAST (Ip)) { if (Ip == 0 || IP4_IS_LOCAL_BROADCAST (Ip)) {

View File

@ -296,7 +296,7 @@ CreateFmpBasedEsrt (
Table->FwResourceCount = 0; Table->FwResourceCount = 0;
Table->FwResourceCountMax = GROWTH_STEP; Table->FwResourceCountMax = GROWTH_STEP;
Table->FwResourceVersion = EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION; Table->FwResourceVersion = EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION;
for (Index = 0; Index < NoProtocols; Index++) { for (Index = 0; Index < NoProtocols; Index++) {
Fmp = (EFI_FIRMWARE_MANAGEMENT_PROTOCOL *) Buffer[Index]; Fmp = (EFI_FIRMWARE_MANAGEMENT_PROTOCOL *) Buffer[Index];

View File

@ -796,14 +796,14 @@ Ip4FreeInterface (
} }
/** /**
This function tries to send all the queued frames in ArpQue to the default gateway if This function tries to send all the queued frames in ArpQue to the default gateway if
the ARP resolve for direct destination address is failed when using /32 subnet mask. the ARP resolve for direct destination address is failed when using /32 subnet mask.
@param[in] ArpQue The ARP queue of a failed request. @param[in] ArpQue The ARP queue of a failed request.
@retval EFI_SUCCESS All the queued frames have been send to the default route. @retval EFI_SUCCESS All the queued frames have been send to the default route.
@retval Others Failed to send the queued frames. @retval Others Failed to send the queued frames.
**/ **/
EFI_STATUS EFI_STATUS
Ip4SendFrameToDefaultRoute ( Ip4SendFrameToDefaultRoute (
@ -817,7 +817,7 @@ Ip4SendFrameToDefaultRoute (
IP4_ADDR Gateway; IP4_ADDR Gateway;
EFI_STATUS Status; EFI_STATUS Status;
IP4_ROUTE_ENTRY *DefaultRoute; IP4_ROUTE_ENTRY *DefaultRoute;
// //
// ARP resolve failed when using /32 subnet mask. // ARP resolve failed when using /32 subnet mask.
// //
@ -850,7 +850,7 @@ Ip4SendFrameToDefaultRoute (
Gateway = DefaultRoute->NextHop; Gateway = DefaultRoute->NextHop;
if (ArpQue->Ip == Gateway) { if (ArpQue->Ip == Gateway) {
// //
// ARP resolve for the default route is failed, return error to caller. // ARP resolve for the default route is failed, return error to caller.
// //
Status= EFI_NO_MAPPING; Status= EFI_NO_MAPPING;
goto ON_ERROR; goto ON_ERROR;
@ -865,7 +865,7 @@ Ip4SendFrameToDefaultRoute (
} }
return EFI_SUCCESS; return EFI_SUCCESS;
ON_ERROR: ON_ERROR:
if (RtCacheEntry != NULL) { if (RtCacheEntry != NULL) {
Ip4FreeRouteCacheEntry (RtCacheEntry); Ip4FreeRouteCacheEntry (RtCacheEntry);
@ -905,7 +905,7 @@ Ip4OnArpResolvedDpc (
RemoveEntryList (&ArpQue->Link); RemoveEntryList (&ArpQue->Link);
// //
// ARP resolve failed for some reason. // ARP resolve failed for some reason.
// //
if (NET_MAC_EQUAL (&ArpQue->Mac, &mZeroMacAddress, ArpQue->Interface->HwaddrLen)) { if (NET_MAC_EQUAL (&ArpQue->Mac, &mZeroMacAddress, ArpQue->Interface->HwaddrLen)) {
if (ArpQue->Interface->SubnetMask != IP4_ALLONE_ADDRESS) { if (ArpQue->Interface->SubnetMask != IP4_ALLONE_ADDRESS) {

View File

@ -682,7 +682,7 @@ Ip4ConfigProtocol (
// //
if (IpSb->State == IP4_SERVICE_UNSTARTED) { if (IpSb->State == IP4_SERVICE_UNSTARTED) {
// //
// Trigger the EFI_IP4_CONFIG2_PROTOCOL to retrieve the // Trigger the EFI_IP4_CONFIG2_PROTOCOL to retrieve the
// default IPv4 address if it is not available yet. // default IPv4 address if it is not available yet.
// //
Policy = IpSb->Ip4Config2Instance.Policy; Policy = IpSb->Ip4Config2Instance.Policy;
@ -1660,7 +1660,7 @@ EfiIp4Transmit (
} }
RawHdrLen = (UINT8) (RawHdrLen << 2); RawHdrLen = (UINT8) (RawHdrLen << 2);
CopyMem (&Head, FirstFragment, IP4_MIN_HEADLEN); CopyMem (&Head, FirstFragment, IP4_MIN_HEADLEN);
Ip4NtohHead (&Head); Ip4NtohHead (&Head);
@ -2250,8 +2250,8 @@ Ip4SentPacketTicking (
} }
/** /**
This heart beat timer of IP4 service instance times out all of its IP4 children's This heart beat timer of IP4 service instance times out all of its IP4 children's
received-but-not-delivered and transmitted-but-not-recycle packets, and provides received-but-not-delivered and transmitted-but-not-recycle packets, and provides
time input for its IGMP protocol. time input for its IGMP protocol.
@param[in] Event The IP4 service instance's heart beat timer. @param[in] Event The IP4 service instance's heart beat timer.
@ -2269,17 +2269,17 @@ Ip4TimerTicking (
IpSb = (IP4_SERVICE *) Context; IpSb = (IP4_SERVICE *) Context;
NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE); NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE);
Ip4PacketTimerTicking (IpSb); Ip4PacketTimerTicking (IpSb);
Ip4IgmpTicking (IpSb); Ip4IgmpTicking (IpSb);
} }
/** /**
This dedicated timer is used to poll underlying network media status. In case This dedicated timer is used to poll underlying network media status. In case
of cable swap or wireless network switch, a new round auto configuration will of cable swap or wireless network switch, a new round auto configuration will
be initiated. The timer will signal the IP4 to run DHCP configuration again. be initiated. The timer will signal the IP4 to run DHCP configuration again.
IP4 driver will free old IP address related resource, such as route table and IP4 driver will free old IP address related resource, such as route table and
Interface, then initiate a DHCP process to acquire new IP, eventually create Interface, then initiate a DHCP process to acquire new IP, eventually create
route table for new IP address. route table for new IP address.
@param[in] Event The IP4 service instance's heart beat timer. @param[in] Event The IP4 service instance's heart beat timer.
@ -2300,12 +2300,12 @@ Ip4TimerReconfigChecking (
IpSb = (IP4_SERVICE *) Context; IpSb = (IP4_SERVICE *) Context;
NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE); NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE);
OldMediaPresent = IpSb->MediaPresent; OldMediaPresent = IpSb->MediaPresent;
// //
// Get fresh mode data from MNP, since underlying media status may change. // Get fresh mode data from MNP, since underlying media status may change.
// Here, it needs to mention that the MediaPresent can also be checked even if // Here, it needs to mention that the MediaPresent can also be checked even if
// EFI_NOT_STARTED returned while this MNP child driver instance isn't configured. // EFI_NOT_STARTED returned while this MNP child driver instance isn't configured.
// //
Status = IpSb->Mnp->GetModeData (IpSb->Mnp, NULL, &SnpModeData); Status = IpSb->Mnp->GetModeData (IpSb->Mnp, NULL, &SnpModeData);
@ -2320,8 +2320,8 @@ Ip4TimerReconfigChecking (
if (!OldMediaPresent && IpSb->MediaPresent && (IpSb->Ip4Config2Instance.Policy == Ip4Config2PolicyDhcp)) { if (!OldMediaPresent && IpSb->MediaPresent && (IpSb->Ip4Config2Instance.Policy == Ip4Config2PolicyDhcp)) {
// //
// Signal the IP4 to run the dhcp configuration again. IP4 driver will free // Signal the IP4 to run the dhcp configuration again. IP4 driver will free
// old IP address related resource, such as route table and Interface, then // old IP address related resource, such as route table and Interface, then
// initiate a DHCP round to acquire new IP, eventually // initiate a DHCP round to acquire new IP, eventually
// create route table for new IP address. // create route table for new IP address.
// //
if (IpSb->ReconfigEvent != NULL) { if (IpSb->ReconfigEvent != NULL) {