From d4cb8e71acf7090430464fe3abb0cd858c5a94b0 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Fri, 27 Feb 2009 07:07:27 +0000 Subject: [PATCH] remove redundant judgement as ALIGNMENT can only equate with 1 or 8 instead of 0 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7729 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Include/Guid/VariableFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Include/Guid/VariableFormat.h b/MdeModulePkg/Include/Guid/VariableFormat.h index b5491e43dc..bf1c6b3687 100644 --- a/MdeModulePkg/Include/Guid/VariableFormat.h +++ b/MdeModulePkg/Include/Guid/VariableFormat.h @@ -34,7 +34,7 @@ extern EFI_GUID gEfiVariableGuid; // // GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement // -#if ((ALIGNMENT == 0) || (ALIGNMENT == 1)) +#if (ALIGNMENT == 1) #define GET_PAD_SIZE(a) (0) #else #define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1)) -- 2.39.2