]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c
Minor coding style adjustment for DiskIo, Partition, English and Ebc modules.
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / PartitionDxe / Gpt.c
index ef3c766e536ecfcdf0cab564965e6d417a5e5808..6d3abae843c2a530198350fdab097156f6e7bffc 100644 (file)
@@ -79,7 +79,7 @@ PartitionRestoreGptTable (
 \r
 \r
 /**\r
-  Restore Partition Table to its alternate place\r
+  Restore Partition Table to its alternate place.\r
   (Primary -> Backup or Backup -> Primary)\r
 \r
   @param[in]    PartHeader    Partition table header structure\r
@@ -97,7 +97,7 @@ PartitionCheckGptEntry (
 \r
 \r
 /**\r
-  Checks the CRC32 value in the table header\r
+  Checks the CRC32 value in the table header.\r
 \r
   @param  MaxSize   Max Size limit\r
   @param  Size      The size of the table\r
@@ -116,7 +116,7 @@ PartitionCheckCrcAltSize (
 \r
 \r
 /**\r
-  Checks the CRC32 value in the table header\r
+  Checks the CRC32 value in the table header.\r
 \r
   @param  MaxSize   Max Size limit\r
   @param  Hdr       Table to check\r
@@ -133,7 +133,7 @@ PartitionCheckCrc (
 \r
 \r
 /**\r
-  Updates the CRC32 value in the table header\r
+  Updates the CRC32 value in the table header.\r
 \r
   @param  Size   The size of the table\r
   @param  Hdr    Table to update\r
@@ -147,7 +147,7 @@ PartitionSetCrcAltSize (
 \r
 \r
 /**\r
-  Updates the CRC32 value in the table header\r
+  Updates the CRC32 value in the table header.\r
 \r
   @param  Hdr    Table to update\r
 \r
@@ -619,7 +619,7 @@ Done:
 \r
 \r
 /**\r
-  Restore Partition Table to its alternate place\r
+  Restore Partition Table to its alternate place.\r
   (Primary -> Backup or Backup -> Primary)\r
 \r
   @param[in]    PartHeader    Partition table header structure\r
@@ -681,7 +681,7 @@ PartitionCheckGptEntry (
 \r
 \r
 /**\r
-  Updates the CRC32 value in the table header\r
+  Updates the CRC32 value in the table header.\r
 \r
   @param  Hdr    Table to update\r
 \r
@@ -696,7 +696,7 @@ PartitionSetCrc (
 \r
 \r
 /**\r
-  Updates the CRC32 value in the table header\r
+  Updates the CRC32 value in the table header.\r
 \r
   @param  Size   The size of the table\r
   @param  Hdr    Table to update\r
@@ -707,7 +707,6 @@ PartitionSetCrcAltSize (
   IN UINTN                 Size,\r
   IN OUT EFI_TABLE_HEADER  *Hdr\r
   )\r
-\r
 {\r
   UINT32  Crc;\r
 \r
@@ -718,7 +717,7 @@ PartitionSetCrcAltSize (
 \r
 \r
 /**\r
-  Checks the CRC32 value in the table header\r
+  Checks the CRC32 value in the table header.\r
 \r
   @param  MaxSize   Max Size limit\r
   @param  Hdr       Table to check\r
@@ -738,7 +737,7 @@ PartitionCheckCrc (
 \r
 \r
 /**\r
-  Checks the CRC32 value in the table header\r
+  Checks the CRC32 value in the table header.\r
 \r
   @param  MaxSize   Max Size limit\r
   @param  Size      The size of the table\r
@@ -768,7 +767,7 @@ PartitionCheckCrcAltSize (
     return FALSE;\r
   }\r
 \r
-  if (MaxSize && Size > MaxSize) {\r
+  if ((MaxSize != 0) && (Size > MaxSize)) {\r
     DEBUG ((EFI_D_ERROR, "CheckCrc32: Size > MaxSize\n"));\r
     return FALSE;\r
   }\r