diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2020-10-23 13:31:40 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-09 15:32:12 +0000 |
commit | dd917bae85396055ff5d6ea760bff3702d154101 (patch) | |
tree | 69aa6088841efbf770106eef925344cb941c00de /ArmPlatformPkg/Drivers | |
parent | f95e80d832e923046c92cd6f0b8208cec147138e (diff) | |
download | edk2-dd917bae85396055ff5d6ea760bff3702d154101.tar.gz edk2-dd917bae85396055ff5d6ea760bff3702d154101.tar.bz2 edk2-dd917bae85396055ff5d6ea760bff3702d154101.zip |
ArmPlatformPkg: Fix Ecc error 3001 in NorFlashDxe
This patch fixes the following Ecc reported error:
Boolean values and variable type BOOLEAN should not use
explicit comparisons to TRUE or FALSE
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'ArmPlatformPkg/Drivers')
-rw-r--r-- | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c index d9e196cbf1..b681c4b466 100644 --- a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c +++ b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c @@ -1,6 +1,6 @@ /** @file NorFlashDxe.c
- Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>
+ Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -259,7 +259,7 @@ NorFlashUnlockSingleBlockIfNecessary ( Status = EFI_SUCCESS;
- if (NorFlashBlockIsLocked (Instance, BlockAddress) == TRUE) {
+ if (NorFlashBlockIsLocked (Instance, BlockAddress)) {
Status = NorFlashUnlockSingleBlock (Instance, BlockAddress);
}
|