Skip to content
Commit 4ca4d2b9 authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by mergify[bot]
Browse files

UefiCpuPkg/MtrrLib: use new IS_POW2() macro.



Drop MtrrLibIsPowerOfTwo function, use the new IS_POW2() macro instead.

The ASSERT() removed (inside MtrrLibIsPowerOfTwo) is superfluous,
another ASSERT() a few lines up in MtrrLibCalculateMtrrs() already
guarantees that Length can not be zero at this point.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarRay Ni <ray.ni@intel.com>
parent 12d3d60f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment