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.
+ Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.
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); }