summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-21 03:17:15 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-21 03:17:15 +0000
commit7efb1d899695611fbca65ca906dd7bfdd9f1161f (patch)
treea724b7bf154c8060b85bd618a78e048c5db0fb8b
parent9d35ff8b32ddda1ecd7d22c6b21faed76dffea9c (diff)
downloadedk2-7efb1d899695611fbca65ca906dd7bfdd9f1161f.tar.gz
edk2-7efb1d899695611fbca65ca906dd7bfdd9f1161f.tar.bz2
edk2-7efb1d899695611fbca65ca906dd7bfdd9f1161f.zip
adjust code to remove Klocwork issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7322 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/BaseMemoryLib/SetMem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/SetMem.c b/MdePkg/Library/BaseMemoryLib/SetMem.c
index 546e665512..32183d4393 100644
--- a/MdePkg/Library/BaseMemoryLib/SetMem.c
+++ b/MdePkg/Library/BaseMemoryLib/SetMem.c
@@ -46,7 +46,7 @@ InternalMemSetMem (
volatile UINT8 *Pointer;
Pointer = (UINT8*)Buffer;
- while (Length-- != 0) {
+ while (Length-- > 0) {
*(Pointer++) = Value;
}
return Buffer;