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>
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							31ea1d2e07
						
					
				
				
					commit
					17ad8ce7b3
				
			@@ -764,7 +764,7 @@ GetFileInfo (
 | 
				
			|||||||
  UINTN           ResultSize;
 | 
					  UINTN           ResultSize;
 | 
				
			||||||
  UINTN           Index;
 | 
					  UINTN           Index;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (Fcb->IsRoot == TRUE) {
 | 
					  if (Fcb->IsRoot) {
 | 
				
			||||||
    ResultSize = SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16);
 | 
					    ResultSize = SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16);
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    NameSize   = AsciiStrLen (Fcb->FileName) + 1;
 | 
					    NameSize   = AsciiStrLen (Fcb->FileName) + 1;
 | 
				
			||||||
@@ -784,7 +784,7 @@ GetFileInfo (
 | 
				
			|||||||
  // Fill in the structure
 | 
					  // Fill in the structure
 | 
				
			||||||
  Info->Size = ResultSize;
 | 
					  Info->Size = ResultSize;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (Fcb->IsRoot == TRUE) {
 | 
					  if (Fcb->IsRoot) {
 | 
				
			||||||
    Info->FileName[0]  = L'\0';
 | 
					    Info->FileName[0]  = L'\0';
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    for (Index = 0; Index < NameSize; Index++) {
 | 
					    for (Index = 0; Index < NameSize; Index++) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user