]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c
clean up all of eight BaseMemoryLib instances in MdePkg with the following updates:
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / ZeroMemWrapper.c
index ea5280357f365d7dfae48669f75b1f105d42c5a2..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -48,8 +48,5 @@ ZeroMem (
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
   ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
-  if (Length == 0) {\r
-    return Buffer;\r
-  }\r
   return InternalMemZeroMem (Buffer, Length);\r
 }\r