]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: Fix Ecc error 3001 in NorFlashDxe
authorPierre Gondois <Pierre.Gondois@arm.com>
Fri, 23 Oct 2020 12:31:40 +0000 (13:31 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 9 Dec 2020 15:32:12 +0000 (15:32 +0000)
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>
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