summaryrefslogtreecommitdiffstats
path: root/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c')
-rw-r--r--PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c b/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c
index 3c39f3743..6bf705312 100644
--- a/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c
+++ b/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c
@@ -137,7 +137,7 @@ SerialPortWrite (
Result = NumberOfBytes;
- while (NumberOfBytes--) {
+ while ((NumberOfBytes--) != 0) {
//
// Wait for the serail port to be ready.
//
@@ -178,7 +178,7 @@ SerialPortRead (
Result = NumberOfBytes;
- while (NumberOfBytes--) {
+ while ((NumberOfBytes--) != 0) {
//
// Wait for the serail port to be ready.
//