]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove redundant judgement as ALIGNMENT can only equate with 1 or 8 instead of 0
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 27 Feb 2009 07:07:27 +0000 (07:07 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 27 Feb 2009 07:07:27 +0000 (07:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7729 6f19259b-4bc3-4df7-8a09-765794883524

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