diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-17 10:42:10 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-17 10:42:10 +0000 |
commit | 24115e44926b33c763f81026690f20efd913daf2 (patch) | |
tree | 165010ef17af178cec3f4da9c0470cb0016de86b /PcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c | |
parent | 36b4e01a25a4abb68cdac3d40fd2c08c3f3722c4 (diff) | |
download | edk2-platforms-24115e44926b33c763f81026690f20efd913daf2.tar.xz |
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/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.
//
|