mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
3709c4cd5b
commit
d4cb8e71ac
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue