Skip to content

Commit

Permalink
ArmPkg: Fix Ecc error 3002 in StandaloneMmMmuLib
Browse files Browse the repository at this point in the history
This patch fixes the following Ecc reported error:
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=)

Cc: Bret Barkelew <[email protected]>
Cc: Sean Brogan <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Sami Mujawar <[email protected]>
Signed-off-by: Pierre Gondois <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
  • Loading branch information
pierregondois authored and mergify[bot] committed Apr 28, 2021
1 parent cc15a61 commit fd9cc20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd9cc20

Please sign in to comment.