summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzliu3 <zliu3@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-07 11:10:24 +0000
committerzliu3 <zliu3@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-07 11:10:24 +0000
commit31528f0c9c464c4e91621ad88472b8701daf725c (patch)
tree21d92690d337d8c913464e98e1ae1680d90cd83b
parent65ddc26edc3c8763e208e69c55f1c02626cdbebd (diff)
downloadedk2-31528f0c9c464c4e91621ad88472b8701daf725c.zip
edk2-31528f0c9c464c4e91621ad88472b8701daf725c.tar.gz
edk2-31528f0c9c464c4e91621ad88472b8701daf725c.tar.bz2
Using CopyMem service to replace the "while" loop for the memory copy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3567 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c b/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c
index b04c9a7..3817c92 100644
--- a/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c
+++ b/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c
@@ -1,13 +1,13 @@
/*++
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2006, Intel Corporation
+All rights reserved. This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
@@ -55,9 +55,7 @@ Returns:
Destination8 = Buffer;
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
Length = *ReadSize;
- while (Length--) {
- *(Destination8++) = *(Source8++);
- }
+ CopyMem (Destination8, Source8, Length);
return EFI_SUCCESS;
}