ArmPkg: Fix Ecc error 3002 in ArmMmuLib

This patch fixes the following Ecc reported error:
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=)

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
Pierre Gondois
2020-12-10 10:17:24 +00:00
committed by mergify[bot]
parent d61b2e28e6
commit a9e5186075
2 changed files with 16 additions and 16 deletions

View File

@@ -294,7 +294,7 @@ UpdateRegionMapping (
{
UINTN T0SZ;
if (((RegionStart | RegionLength) & EFI_PAGE_MASK)) {
if (((RegionStart | RegionLength) & EFI_PAGE_MASK) != 0) {
return EFI_INVALID_PARAMETER;
}