]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c
Code Scrub for MdePkg.
[mirror_edk2.git] / MdePkg / Library / BaseIoLibIntrinsic / IoLibMmioBuffer.c
index 20c4693f3a5d31473308f0fc20b984229ff562a7..4a54837413753706ca65f91350cf4ae3458ef5dc 100644 (file)
@@ -47,7 +47,7 @@ MmioReadBuffer8 (
  \r
   ReturnBuffer = Buffer;\r
   \r
-  while (Length--) {\r
+  while (Length-- != 0) {\r
     *(Buffer++) = MmioRead8 (StartAddress++);\r
   }\r
 \r
@@ -96,7 +96,7 @@ MmioReadBuffer16 (
  \r
   ReturnBuffer = Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     *(Buffer++) = MmioRead16 (StartAddress);\r
     StartAddress += sizeof (UINT16);\r
     Length -= sizeof (UINT16);\r
@@ -147,7 +147,7 @@ MmioReadBuffer32 (
  \r
   ReturnBuffer = Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     *(Buffer++) = MmioRead32 (StartAddress);\r
     StartAddress += sizeof (UINT32);\r
     Length -= sizeof (UINT32);\r
@@ -198,7 +198,7 @@ MmioReadBuffer64 (
  \r
   ReturnBuffer = Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     *(Buffer++) = MmioRead64 (StartAddress);\r
     StartAddress += sizeof (UINT64);\r
     Length -= sizeof (UINT64);\r
@@ -241,7 +241,7 @@ MmioWriteBuffer8 (
  \r
   ReturnBuffer = (UINT8 *) Buffer;\r
   \r
-  while (Length--) {\r
+  while (Length-- != 0) {\r
      MmioWrite8 (StartAddress++, *(Buffer++));\r
   }\r
 \r
@@ -292,7 +292,7 @@ MmioWriteBuffer16 (
 \r
   ReturnBuffer = (UINT16 *) Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     MmioWrite16 (StartAddress, *(Buffer++));\r
     \r
     StartAddress += sizeof (UINT16);\r
@@ -346,7 +346,7 @@ MmioWriteBuffer32 (
 \r
   ReturnBuffer = (UINT32 *) Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     MmioWrite32 (StartAddress, *(Buffer++));\r
     \r
     StartAddress += sizeof (UINT32);\r
@@ -399,7 +399,7 @@ MmioWriteBuffer64 (
 \r
   ReturnBuffer = (UINT64 *) Buffer;\r
   \r
-  while (Length) {\r
+  while (Length != 0) {\r
     MmioWrite64 (StartAddress, *(Buffer++));\r
     \r
     StartAddress += sizeof (UINT64);\r