diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-27 07:07:27 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-27 07:07:27 +0000 |
commit | d4cb8e71acf7090430464fe3abb0cd858c5a94b0 (patch) | |
tree | feb8ab113b55994a1f9ec043b44b60f78201f685 /MdeModulePkg/Include | |
parent | 3709c4cd5bc3956fee59f31bdd1b7dc5b61a039a (diff) | |
download | edk2-platforms-d4cb8e71acf7090430464fe3abb0cd858c5a94b0.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Guid/VariableFormat.h | 2 |
1 files changed, 1 insertions, 1 deletions
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))
|