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>
/** @file\r
\r
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
- Copyright (c) 2013 - 2014, ARM Ltd. All rights reserved.<BR>\r
+ Copyright (c) 2013 - 2021, Arm Limited. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
IN UINTN FileHandle\r
)\r
{\r
- INT32 Result = Semihost_SYS_CLOSE(&FileHandle);\r
-\r
- if (Result == -1) {\r
+ if (Semihost_SYS_CLOSE (&FileHandle) == -1) {\r
return RETURN_INVALID_PARAMETER;\r
} else {\r
return RETURN_SUCCESS;\r