From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.103]) by mx.groups.io with SMTP id smtpd.web11.15352.1684220919188367767 for ; Tue, 16 May 2023 00:08:39 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=Vfiwnsya; spf=pass (domain: os.amperecomputing.com, ip: 40.107.102.103, mailfrom: minhnguyen1@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mgdw+vf4fPD3GfciLzADFjwtzK+7nfh6V5p4/Sx/ZLLyY0DLbq/JwfaDrItCeipW3lhUEbJBPdeW2qNZYrAx4zUChfDYd1XnLcZKC3MoF5IxoC9+qrvb6j+P2tj0/GibcbkghO46FIOIoAbH7jeUnzP5EZXmBgZBfgetKmn8HDpNl/jpbz0VWqkOgLrL/xUtuMfGgCKfwM0+KJwO0H5aV5X6+Z8g/AUraFR8jP7uf/f17HoCphG4abGjEuTiiazEQJufmOwiCdo2td2QhdPpvBD76/hLiNfW8Tr6+TSP38my1M42anJn0PnEZ3JMbkUS84COgnEeftfM37V41HrKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WgetnIUk50dec83uKRkILrP9uGrRrMwP5DKubgjp2B4=; b=cdFbqxqqQ+fe5ckYqNhoScLLGqyNCTL2bENVG3ehEpbrO1qegN6LowN73hihj1g9yXF48cXL5BMYwwvRrcULouTfWI9eEGjuLq+jv4Bm1sMjcIebGjLRlMJShC4ic1YHYWbioC0ikms1QptLKyg4ckbj/qdC8pUtjijw8OJrGUVtjGI/bfiHvYJ8JiyxGiA3384pTm7wdzSAClVd7XaGRifCIcrHSVpRG9wEOrlZnb2iDDi8aH9OUjOLKZBp6DRUXTE8GGnMiJiYjdMc2OsULdIctWbJsDDJ63l4H366debCjx1GjSYnMqXv792Zw5OAegIj1cGp1+dHi8Q9Hm22Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WgetnIUk50dec83uKRkILrP9uGrRrMwP5DKubgjp2B4=; b=VfiwnsyaeOSc5Fn1jf54zimDHjqtpQ7Rcpnvug3ryZs+99A/Vkfi79FMy+3zuz7m/jcRcLZTY6ESERwPNuEmjakNde2VTJUwgJD1mLwdj/6wr16O7FIrjEHwPG/AEQ8RXIe9gLEclxrgWXCTqAdL+DKGp4WZfTaEscjGHDc7uVs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) by MWHPR01MB2381.prod.exchangelabs.com (2603:10b6:300:46::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Tue, 16 May 2023 07:08:37 +0000 Received: from PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1]) by PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1%6]) with mapi id 15.20.6387.030; Tue, 16 May 2023 07:08:37 +0000 From: Minh Nguyen To: devel@edk2.groups.io CC: quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, sami.mujawar@arm.com, khanh.pham@os.amperecomputing.com, nhi@os.amperecomputing.com, tinhnguyen@os.amperecomputing.com, Minh Nguyen Subject: [PATCH 2/2] ArmPkg/SmbiosMiscDxe: Remove redundant assign for SmbiosHandle Date: Tue, 16 May 2023 14:08:12 +0700 Message-ID: <20230516070812.3606476-3-minhnguyen1@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230516070812.3606476-1-minhnguyen1@os.amperecomputing.com> References: <20230516070812.3606476-1-minhnguyen1@os.amperecomputing.com> X-ClientProxiedBy: SGBP274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::15) To PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) Return-Path: minhnguyen1@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB8048:EE_|MWHPR01MB2381:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b67a328-6782-42e9-a5e7-08db55dc5e50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ecp1Vq0Lqn/WrCKnczRVeaTW3jOtxqmz4jEUCbtSkMSpsW4rgMJr7eOvGuR0RnfDOpwRIMg61R4iXq/S6syMLmrffnHDNknU9Yw+5Sn+IV3QXhDbCKMyjY/OznFRiK/eLmG0sOgVN7qA8ORDx0yahQ25TenrN7U0FqWWdIeYc5GxFL0X3yQy/UJWOH++7atHNW55E50xnkO8sqL+92k+dsizjOsJRfbmVZ14l188ckeefcJqxjwgS2gzoDDcFHIYFLPsS652P6oqrddfBZFZEHoVmXY3MURYQg4cjowaCTwCBoIBgZ7mdoIfjD7QtzmySwMhPvgZUYC5NiRAJ1ZR94YqYyn8jtgmMsNtT6VEZofGKtuTj0ULp2znvup7fhtCOCWnRXfqDmMde1G0kiJeny3jNAcbZkSAmLqYAqEpmuf4VyWB7TVHTVkCotCRu5U/DleXCaJcsFftAV1HrnATd3IF0dkC8xeSxhz54v3bNOqRbnb5pFhweDwWTptvSdSAX6wI/TDznaXnAyP6gnMJUYC0Q2EzB82TUKuSnz1sJ7ljDtklm6DIFG93kdQ6BqSCXlOua4fqatBvmhAGfRJv9hY1pZx+/Uz3hvJzNH7XF8RKQHWRJFyp5Sz2vBMhi7Yn X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB8048.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39850400004)(396003)(366004)(346002)(136003)(376002)(451199021)(4744005)(52116002)(316002)(66946007)(66556008)(478600001)(6916009)(66476007)(4326008)(6486002)(86362001)(2616005)(8676002)(5660300002)(8936002)(6666004)(2906002)(38350700002)(41300700001)(38100700002)(83380400001)(1076003)(186003)(107886003)(6512007)(26005)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mqMVglRWSWEUm/yjZn669s+lNnC6EoJ2bM3fXlzmHej1B9OSVqdYOMMIKihZ?= =?us-ascii?Q?s1G1uitwb54gaTVLsR59rQFlkwwGwS8fgSeHO1rOsPpv0VMWGTDH6lm0Ii6E?= =?us-ascii?Q?AwO6N1pgjgUhoSO3AAchVPoiV9Q7++Q097/XYNH+u8BOF91jqq6ATTbSPFZ2?= =?us-ascii?Q?VSdldj7k+S25UJaYSBtZL6yXRHWVj4D9gTk7GVQ93EaOE+WIAA1T/NYqUxA8?= =?us-ascii?Q?BnEi9sEL2rEScxlMDY6YMX9bGj44ExpW7oKmhL3gvtg0jRSa3cjuzmKCCuSc?= =?us-ascii?Q?E2hVlCwhm3911WpN02qqOAqBLa/VM1Hm+Di22M4/4B+y6KS6283KOFUqpTz6?= =?us-ascii?Q?DswvO+M3ZHGSyDz+IFpmBgVRNlwxAItVz06mci2ou4a/ElstwsmqibZ4qNc5?= =?us-ascii?Q?c09Clg86Oq1cAzYL8MC730V3wfsn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VRSua2jogtbNbXNA5/UmJpP4dcluG8V2Xp84Lv8Iw8j8mQ3LXp6cxJTNPL8?= =?us-ascii?Q?552nLvi/n/7RNHosFoivAAU3oxwQLa8Bl/HDbhxdBb15foD6/Zcm7kWKE1g6?= =?us-ascii?Q?gEp0OnY/VljJWIytnl5zCR8RhpQ7I9GoR/a8OSYvgviSFtETgWfkXbYez+aN?= =?us-ascii?Q?4gSaJ0szP8af+vtcjkmFkFd4QY/9UFbGmuyN3dGMlLEox5B1qNgEXFe6sJcF?= =?us-ascii?Q?FjMKWxyWOM72oCOt8eFs99wD5wsNEFLgEKo5RV82ORL14bEJEnOk3Sxfp1vW?= =?us-ascii?Q?7mse1D9GO17TZViK7juFuesdsCAD8zy9t8vGONuZ//i+?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b67a328-6782-42e9-a5e7-08db55dc5e50 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8048.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 07:08:37.0020 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: km+PVx/Tld/UnGCOq04l/EI/9TplOHq3WXvka3ySYCYA0/poKNcdyIWUkNYssF2LC1yZupqnLPG+BEKJ3HlrfS3SDqSRtNRqXMA2HQ+nCGaISaDjs72Z/s88e13K3BMU X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR01MB2381 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This helps to remove redundant assign for SmbiosHandle. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Minh Nguyen --- ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c b= /ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c index 7250da02b3ac..313129460d9c 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c @@ -213,8 +213,6 @@ SmbiosMiscGetLinkTypeHandle ( return; } =20 - SmbiosHandle =3D SMBIOS_HANDLE_PI_RESERVED; - for (Index =3D 0; Index < (*HandleCount); Index++) { Status =3D mSmbiosMiscSmbios->GetNext ( mSmbiosMiscSmbios, --=20 2.39.0