From 58bba221b78ba9dd8d2bc3a75f032299b2b951ca Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Thu, 10 Dec 2020 13:14:07 +0000 Subject: 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 Reviewed-by: Ard Biesheuvel --- ArmPkg/Library/SemihostLib/SemihostLib.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ArmPkg') diff --git a/ArmPkg/Library/SemihostLib/SemihostLib.c b/ArmPkg/Library/SemihostLib/SemihostLib.c index 78b862468b..a75d45850d 100644 --- a/ArmPkg/Library/SemihostLib/SemihostLib.c +++ b/ArmPkg/Library/SemihostLib/SemihostLib.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- Copyright (c) 2013 - 2014, ARM Ltd. All rights reserved.
+ Copyright (c) 2013 - 2021, Arm Limited. All rights reserved.
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; -- cgit v1.2.3