]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptPei/CompareMemWrapper.c
remove unnecessary comments introduced by tools from MdePkg. The regular express...
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptPei / CompareMemWrapper.c
index 031b7fcec6456ad767d735d05b4ab9f71a632611..12bd4c2d4647b5e9fa38f9837aa1a10b7c7538f1 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
@@ -58,7 +56,7 @@ CompareMem (
   IN UINTN       Length\r
   )\r
 {\r
-  if (0 == Length) {\r
+  if (Length == 0 || DestinationBuffer == SourceBuffer) {\r
     return 0;\r
   }\r
   ASSERT (DestinationBuffer != NULL);\r