mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
f95e80d832
commit
dd917bae85
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue