diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2020-03-05 10:42:15 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-05 21:08:30 +0000 |
commit | 825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c (patch) | |
tree | 750ca673b868d8583dc7c1cf49206bd9555fa644 /BaseTools/Source/Python/Ecc/ParserWarning.py | |
parent | eaaaece4ad455aca9bac3f719b8280f52f9d1893 (diff) | |
download | edk2-825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c.tar.gz edk2-825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c.tar.bz2 edk2-825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c.zip |
ArmPkg/ArmMmuLib ARM: use AllocateAlignedPages() for alignment
Instead of overallocating memory and align the resulting base address
manually, use the AllocateAlignedPages () helper, which achieves the
same, and might even manage that without leaking a chunk of memory of
the same size as the allocation itself.
While at it, fix up a variable declaration in the same hunk, and drop
a comment whose contents add nothing to the following line of code.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/ParserWarning.py')
0 files changed, 0 insertions, 0 deletions