]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/PiFirmwareFile: express IS_SECTION2 in terms of SECTION_SIZE
authorLaszlo Ersek <lersek@redhat.com>
Fri, 12 Apr 2019 11:56:51 +0000 (13:56 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 24 Apr 2019 15:30:46 +0000 (17:30 +0200)
commitd976f09d99b738d3e0de173e3c77fceb0735cc69
tree1dc8e43063f4dd584a5af4904bc50b446093abe0
parent1a734ed85fda71630c795832e6d24ea560caf739
MdePkg/PiFirmwareFile: express IS_SECTION2 in terms of SECTION_SIZE

The IS_SECTION2() function-like macro duplicates the SECTION_SIZE()
calculation, just to compare the computed size against 0xFFFFFF. Invoke
SECTION_SIZE() instead; only preserve the comparison.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1710
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
MdePkg/Include/Pi/PiFirmwareFile.h