ArmPkg: Fix Ecc error 5007 in SemihostLib
This patch fixes the following Ecc reported error: There should be no initialization of a variable as part of its declaration 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]](/avatar/e3df20cd7a67969c41a65f03bea54961?size=40) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							02c621f3f7
						
					
				
				
					commit
					58bba221b7
				
			| @@ -1,7 +1,7 @@ | ||||
| /** @file | ||||
|  | ||||
|   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> | ||||
|   Copyright (c) 2013 - 2014, ARM Ltd. All rights reserved.<BR> | ||||
|   Copyright (c) 2013 - 2021, Arm Limited. All rights reserved.<BR> | ||||
|  | ||||
|   SPDX-License-Identifier: BSD-2-Clause-Patent | ||||
|  | ||||
| @@ -135,9 +135,7 @@ SemihostFileClose ( | ||||
|   IN UINTN  FileHandle | ||||
|   ) | ||||
| { | ||||
|   INT32 Result = Semihost_SYS_CLOSE(&FileHandle); | ||||
|  | ||||
|   if (Result == -1) { | ||||
|   if (Semihost_SYS_CLOSE (&FileHandle) == -1) { | ||||
|     return RETURN_INVALID_PARAMETER; | ||||
|   } else { | ||||
|     return RETURN_SUCCESS; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user