mirror of https://github.com/acidanthera/audk.git
ArmPkg: Fix Ecc error 3002 in StandaloneMmMmuLib
This patch fixes the following Ecc reported error: Non-Boolean comparisons should use a compare operator (==, !=, >, < >=, <=) Cc: Bret Barkelew <bret.barkelew@microsoft.com> Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
cc15a619a6
commit
fd9cc2052e
|
@ -101,7 +101,7 @@ SendMemoryPermissionRequest (
|
|||
}
|
||||
|
||||
// Check error response from Callee.
|
||||
if (*RetVal & BIT31) {
|
||||
if ((*RetVal & BIT31) != 0) {
|
||||
// Bit 31 set means there is an error retured
|
||||
// See [1], Section 13.5.5.1 MM_SP_MEMORY_ATTRIBUTES_GET_AARCH64 and
|
||||
// Section 13.5.5.2 MM_SP_MEMORY_ATTRIBUTES_SET_AARCH64.
|
||||
|
|
Loading…
Reference in New Issue