diff options
author | tding1 <tding1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-04 06:12:44 +0000 |
---|---|---|
committer | tding1 <tding1@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-04 06:12:44 +0000 |
commit | 4ebb0d9eb125fe6ba7d58fc547a32f514d8b9546 (patch) | |
tree | a731f045c0e7854ca988807e0f6b7044cd768559 /IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c | |
parent | 9fd4915febf59e2767e71a748d94c25246a744c6 (diff) | |
download | edk2-platforms-4ebb0d9eb125fe6ba7d58fc547a32f514d8b9546.tar.xz |
fix ecc report-out issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6831 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c')
-rw-r--r-- | IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c b/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c index 1a39f21288..f43db07fe6 100644 --- a/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c +++ b/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLibMmioBuffer.c @@ -48,7 +48,7 @@ MmioReadBuffer8 ( ReturnBuffer = Buffer;
- while (Length--) {
+ while (Length-- > 0) {
*(Buffer++) = MmioRead8 (StartAddress++);
}
@@ -97,7 +97,7 @@ MmioReadBuffer16 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length > 0) {
*(Buffer++) = MmioRead16 (StartAddress);
StartAddress += sizeof (UINT16);
Length -= sizeof (UINT16);
@@ -148,7 +148,7 @@ MmioReadBuffer32 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length > 0) {
*(Buffer++) = MmioRead32 (StartAddress);
StartAddress += sizeof (UINT32);
Length -= sizeof (UINT32);
@@ -199,7 +199,7 @@ MmioReadBuffer64 ( ReturnBuffer = Buffer;
- while (Length) {
+ while (Length > 0) {
*(Buffer++) = MmioRead64 (StartAddress);
StartAddress += sizeof (UINT64);
Length -= sizeof (UINT64);
@@ -242,7 +242,7 @@ MmioWriteBuffer8 ( ReturnBuffer = (UINT8 *) Buffer;
- while (Length--) {
+ while (Length-- > 0) {
MmioWrite8 (StartAddress++, *(Buffer++));
}
@@ -293,7 +293,7 @@ MmioWriteBuffer16 ( ReturnBuffer = (UINT16 *) Buffer;
- while (Length) {
+ while (Length > 0) {
MmioWrite16 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT16);
@@ -347,7 +347,7 @@ MmioWriteBuffer32 ( ReturnBuffer = (UINT32 *) Buffer;
- while (Length) {
+ while (Length > 0) {
MmioWrite32 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT32);
@@ -400,7 +400,7 @@ MmioWriteBuffer64 ( ReturnBuffer = (UINT64 *) Buffer;
- while (Length) {
+ while (Length > 0) {
MmioWrite64 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT64);
|