mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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…
x
Reference in New Issue
Block a user