]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/VariableFormat.h
remove redundant judgement as ALIGNMENT can only equate with 1 or 8 instead of 0
[mirror_edk2.git] / MdeModulePkg / Include / Guid / VariableFormat.h
index b5491e43dc09abbb41081ff28bcf08f9821df084..bf1c6b3687a64e53b8e3ea6cfd6f1987df0cae46 100644 (file)
@@ -34,7 +34,7 @@ extern EFI_GUID gEfiVariableGuid;
 //\r
 // GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement\r
 //\r
-#if ((ALIGNMENT == 0) || (ALIGNMENT == 1))\r
+#if (ALIGNMENT == 1)\r
 #define GET_PAD_SIZE(a) (0)\r
 #else\r
 #define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))\r