diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2020-12-10 10:46:33 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-01-06 16:22:54 +0000 |
commit | 17ad8ce7b38b52e9a0db2eb193fe89667feeb2fb (patch) | |
tree | 8242af2ea88731a5d820796c6fda6b734ba3580b | |
parent | 31ea1d2e071f94216a4db7e2de234b3e2dcc24c2 (diff) | |
download | edk2-17ad8ce7b38b52e9a0db2eb193fe89667feeb2fb.tar.gz edk2-17ad8ce7b38b52e9a0db2eb193fe89667feeb2fb.tar.bz2 edk2-17ad8ce7b38b52e9a0db2eb193fe89667feeb2fb.zip |
ArmPkg: Fix Ecc error 3001 in SemihostFs
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>
-rw-r--r-- | ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c b/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c index 69e983226b..230f971f8b 100644 --- a/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c +++ b/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c @@ -764,7 +764,7 @@ GetFileInfo ( UINTN ResultSize;
UINTN Index;
- if (Fcb->IsRoot == TRUE) {
+ if (Fcb->IsRoot) {
ResultSize = SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16);
} else {
NameSize = AsciiStrLen (Fcb->FileName) + 1;
@@ -784,7 +784,7 @@ GetFileInfo ( // Fill in the structure
Info->Size = ResultSize;
- if (Fcb->IsRoot == TRUE) {
+ if (Fcb->IsRoot) {
Info->FileName[0] = L'\0';
} else {
for (Index = 0; Index < NameSize; Index++) {
|