summaryrefslogtreecommitdiffstats
path: root/PcAtChipsetPkg/Library
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 10:42:10 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 10:42:10 +0000
commit24115e44926b33c763f81026690f20efd913daf2 (patch)
tree165010ef17af178cec3f4da9c0470cb0016de86b /PcAtChipsetPkg/Library
parent36b4e01a25a4abb68cdac3d40fd2c08c3f3722c4 (diff)
downloaddevice_linaro_bootloader_edk2-24115e44926b33c763f81026690f20efd913daf2.tar.gz
device_linaro_bootloader_edk2-24115e44926b33c763f81026690f20efd913daf2.tar.bz2
device_linaro_bootloader_edk2-24115e44926b33c763f81026690f20efd913daf2.zip
RefRefine soma code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10885 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PcAtChipsetPkg/Library')
-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.
//