]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptDxe/ScanMem32Wrapper.c
remove unnecessary comments introduced by tools from MdePkg. The regular express...
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / ScanMem32Wrapper.c
index 896d60c208aee20776ec58db226807dabe002a6e..40064ed8dfa63a69377df065633c6a5f0623b456 100644 (file)
@@ -21,9 +21,7 @@
 \r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
+\r
 \r
 \r
 #include "MemLibInternals.h"\r
@@ -39,7 +37,7 @@
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
 \r
   @param  Buffer      Pointer to the target buffer to scan.\r
   @param  Length      Number of bytes in Buffer to scan.\r
@@ -56,7 +54,7 @@ ScanMem32 (
   IN UINT32      Value\r
   )\r
 {\r
-  if (Length == 0) {\r
+  if (0 == Length) {\r
     return NULL;\r
   }\r
 \r