summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseIoLibIntrinsic
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2017-01-19 16:53:41 +0800
committerHao Wu <hao.a.wu@intel.com>2017-01-20 15:40:59 +0800
commit058cd03b5857e917a8a6d77ec4707ff77a441ca8 (patch)
treee13956d2ae0de29b6e9ebfb4ce75c0f7f85e3c59 /MdePkg/Library/BaseIoLibIntrinsic
parent6d11b822a3a68b810f0ceb26ea107ad0e984052a (diff)
downloadedk2-058cd03b5857e917a8a6d77ec4707ff77a441ca8.tar.gz
edk2-058cd03b5857e917a8a6d77ec4707ff77a441ca8.tar.bz2
edk2-058cd03b5857e917a8a6d77ec4707ff77a441ca8.zip
MdePkg: Avoid Non-Boolean type used as Boolean
Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Leo Duran <leo.duran@amd.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/BaseIoLibIntrinsic')
-rw-r--r--MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c
index e388549b3c..b84134b757 100644
--- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c
+++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c
@@ -282,7 +282,7 @@ IoReadFifo8 (
UINT8 *Buffer8;
Buffer8 = (UINT8 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
*Buffer8++ = IoRead8 (Port);
}
}
@@ -315,7 +315,7 @@ IoReadFifo16 (
UINT16 *Buffer16;
Buffer16 = (UINT16 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
*Buffer16++ = IoRead16 (Port);
}
}
@@ -348,7 +348,7 @@ IoReadFifo32 (
UINT32 *Buffer32;
Buffer32 = (UINT32 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
*Buffer32++ = IoRead32 (Port);
}
}
@@ -381,7 +381,7 @@ IoWriteFifo8 (
UINT8 *Buffer8;
Buffer8 = (UINT8 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
IoWrite8 (Port, *Buffer8++);
}
}
@@ -414,7 +414,7 @@ IoWriteFifo16 (
UINT16 *Buffer16;
Buffer16 = (UINT16 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
IoWrite16 (Port, *Buffer16++);
}
}
@@ -447,7 +447,7 @@ IoWriteFifo32 (
UINT32 *Buffer32;
Buffer32 = (UINT32 *)Buffer;
- while (Count--) {
+ while (Count-- > 0) {
IoWrite32 (Port, *Buffer32++);
}
}