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
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user