diff options
Diffstat (limited to 'PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c')
-rw-r--r-- | PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c b/PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c index 3c39f37432..6bf705312d 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.
//
|