diff options
author | Liming Gao <liming.gao@intel.com> | 2018-06-27 21:11:33 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-28 11:19:47 +0800 |
commit | 9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 (patch) | |
tree | 15a2cb1a7907a9114ee79130699ce7d324c942ea /MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c | |
parent | d1102dba7210b95e41d06c2338a22ba6af248645 (diff) | |
download | edk2-9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107.tar.gz edk2-9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107.tar.bz2 edk2-9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107.zip |
MdePkg: Clean up source files
1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c')
-rw-r--r-- | MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c index 35a73e83ff..c5f3764fc0 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c @@ -279,7 +279,7 @@ IsHexStr ( while ((*Str != 0) && *Str == L'0') {
Str ++;
}
-
+
return (BOOLEAN) (*Str == L'x' || *Str == L'X');
}
@@ -980,7 +980,7 @@ DevPathFromTextAcpiAdr ( ASSERT (AcpiAdr != NULL);
SetDevicePathNodeLength (AcpiAdr, Length + sizeof (UINT32));
}
-
+
(&AcpiAdr->ADR)[Index] = (UINT32) Strtoi (DisplayDeviceStr);
}
@@ -2757,18 +2757,18 @@ DevPathFromTextDns ( }
DeviceNodeStrPtr = DeviceNodeStr;
-
+
DnsServerIpCount = 0;
while (DeviceNodeStrPtr != NULL && *DeviceNodeStrPtr != L'\0') {
GetNextParamStr (&DeviceNodeStrPtr);
- DnsServerIpCount ++;
+ DnsServerIpCount ++;
}
FreePool (DeviceNodeStr);
DeviceNodeStr = NULL;
//
- // One or more instances of the DNS server address in EFI_IP_ADDRESS,
+ // One or more instances of the DNS server address in EFI_IP_ADDRESS,
// otherwise, NULL will be returned.
//
if (DnsServerIpCount == 0) {
@@ -2814,7 +2814,7 @@ DevPathFromTextDns ( StrToIpv6Address (DnsServerIp, NULL, &(DnsDeviceNode->DnsServerIp[DnsServerIpIndex].v6), NULL);
}
}
-
+
return (EFI_DEVICE_PATH_PROTOCOL *) DnsDeviceNode;
}
|