]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c
ArmPlatformPkg: Fix Ecc error 3001 in NorFlashDxe
[mirror_edk2.git] / ArmPlatformPkg / Drivers / NorFlashDxe / NorFlashDxe.c
index d9e196cbf18c32fe5306cc3c0674a7b5798a9191..b681c4b4668630de8a9585363a328b3e3f1bc324 100644 (file)
@@ -1,6 +1,6 @@
 /** @file  NorFlashDxe.c\r
 \r
-  Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -259,7 +259,7 @@ NorFlashUnlockSingleBlockIfNecessary (
 \r
   Status = EFI_SUCCESS;\r
 \r
-  if (NorFlashBlockIsLocked (Instance, BlockAddress) == TRUE) {\r
+  if (NorFlashBlockIsLocked (Instance, BlockAddress)) {\r
     Status = NorFlashUnlockSingleBlock (Instance, BlockAddress);\r
   }\r
 \r