]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix Ecc error 3001 in SemihostFs
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 10 Dec 2020 10:46:33 +0000 (10:46 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Jan 2021 16:22:54 +0000 (16:22 +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>
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c

index 69e983226ba7e713e57c7a1b89f61565153a7256..230f971f8bb4ac0f2bcf942cd88487552c0957be 100644 (file)
@@ -764,7 +764,7 @@ GetFileInfo (
   UINTN           ResultSize;\r
   UINTN           Index;\r
 \r
-  if (Fcb->IsRoot == TRUE) {\r
+  if (Fcb->IsRoot) {\r
     ResultSize = SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16);\r
   } else {\r
     NameSize   = AsciiStrLen (Fcb->FileName) + 1;\r
@@ -784,7 +784,7 @@ GetFileInfo (
   // Fill in the structure\r
   Info->Size = ResultSize;\r
 \r
-  if (Fcb->IsRoot == TRUE) {\r
+  if (Fcb->IsRoot) {\r
     Info->FileName[0]  = L'\0';\r
   } else {\r
     for (Index = 0; Index < NameSize; Index++) {\r