diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-25 12:21:57 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-25 12:21:57 +0000 |
commit | 42eedea958591087603bbacd1c2227d2494026af (patch) | |
tree | 2213bd86a2a23738bf9caeb10f48df6ad5a1986b /MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c | |
parent | 0f82bd55142af193e669e76fcaf02f8d835f3f39 (diff) | |
download | edk2-platforms-42eedea958591087603bbacd1c2227d2494026af.tar.xz |
Code Scrub for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5567 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c')
-rw-r--r-- | MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c index 20c4693f3a..4a54837413 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c @@ -47,7 +47,7 @@ MmioReadBuffer8 ( ReturnBuffer = Buffer;
- while (Length--) {
+ while (Length-- != 0) {
*(Buffer++) = MmioRead8 (StartAddress++);
}
@@ -96,7 +96,7 @@ MmioReadBuffer16 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length != 0) {
*(Buffer++) = MmioRead16 (StartAddress);
StartAddress += sizeof (UINT16);
Length -= sizeof (UINT16);
@@ -147,7 +147,7 @@ MmioReadBuffer32 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length != 0) {
*(Buffer++) = MmioRead32 (StartAddress);
StartAddress += sizeof (UINT32);
Length -= sizeof (UINT32);
@@ -198,7 +198,7 @@ MmioReadBuffer64 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length != 0) {
*(Buffer++) = MmioRead64 (StartAddress);
StartAddress += sizeof (UINT64);
Length -= sizeof (UINT64);
@@ -241,7 +241,7 @@ MmioWriteBuffer8 ( ReturnBuffer = (UINT8 *) Buffer;
- while (Length--) {
+ while (Length-- != 0) {
MmioWrite8 (StartAddress++, *(Buffer++));
}
@@ -292,7 +292,7 @@ MmioWriteBuffer16 ( ReturnBuffer = (UINT16 *) Buffer;
- while (Length) {
+ while (Length != 0) {
MmioWrite16 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT16);
@@ -346,7 +346,7 @@ MmioWriteBuffer32 ( ReturnBuffer = (UINT32 *) Buffer;
- while (Length) {
+ while (Length != 0) {
MmioWrite32 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT32);
@@ -399,7 +399,7 @@ MmioWriteBuffer64 ( ReturnBuffer = (UINT64 *) Buffer;
- while (Length) {
+ while (Length != 0) {
MmioWrite64 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT64);
|