From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1C24B7803D7 for ; Thu, 29 Feb 2024 08:55:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=08MyawKBiAR/S6eFnh3wyqOblEBEV0VSHQv2Sf+OT1k=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1709196905; v=1; b=qq0lAU1CC8vzx3bbeLYHQJ6rmLRFSt19wMzRL1wOx0F6KUkzcKn8Pjj2LyN/kJXOTnQFOOgm faQyYEwndI3se1XniLk+FJT4IJV4wu52qKOudtdYIXmug0QkEsRIWazpXLABVOD7fxHa3hMEmPD Qognr8kbPAk1J0NG0cJgK46E= X-Received: by 127.0.0.2 with SMTP id tb7MYY7687511xy8uGzz62mv; Thu, 29 Feb 2024 00:55:05 -0800 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.45]) by mx.groups.io with SMTP id smtpd.web11.19934.1709196905203299262 for ; Thu, 29 Feb 2024 00:55:05 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lgP2UvzT4uOGWgcVwutYnBVjNLG4UJJEAebWGSZScJyGdsEiyKF4pOjKcaIC2Lc34SUUwdTL0S8J4u6wRaxmAQt6nHWEVaWiDZdoBoIVpA+LfYgu7nBig3rc3g0o3ydlvFDx35n04upP62/J43ShL2Qoy6ITwpvER87eelUaJUVbhCGd8uhcytd+28DOC0lcD0EAPNqosmVQRKVvXoa8RMs9SdTKLLYlQSvjxaV4pzWgAqVwuMCHdDiZf4z2f3wDzlamQiLzNklWoAYJa0lXprCc9nXdEm8ZlCy+efSnSooqF67zVUrNF6Doysyp7HfOO8Da7PZTLNVhnrWBPi7jyQ== 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=lFi3TC16u0xCTFohAyavpTmfwHqEP4hLgwsIqB+xpgY=; b=WsttSRFPdt2/9EjVGqKDUhlbBzgcN9l2f2ehGKy6YTdLSV6uj1QE+1utHy+NMldVpAPskVo9hkZVuyiu+jBKnIGnmdO22RsmFMkQuifPrTd5Zp5LY1Y4NDBAdlabTrIo95YrwJ58vxtCF/f54aw6KiYCpleib/SznQ7a8GvpqE/1RAlhI5i1PL3uAjr820TOhl3zlk/1H3icOSzF8QZaueWtVSRsoR2XvG/ewOw1CRds89a/2aZVitN6EVZi4GaXbv4IHWf7c1ykPMsFyT29RSCVca10TINpMo0bRRPazz0UEXjlQAHBFh8A60CDfo5vtEObGiUvoFeNziKZb7i0Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) X-Received: from CH2PR14CA0054.namprd14.prod.outlook.com (2603:10b6:610:56::34) by CH2PR12MB4053.namprd12.prod.outlook.com (2603:10b6:610:7c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Thu, 29 Feb 2024 08:55:01 +0000 X-Received: from CH1PEPF0000A345.namprd04.prod.outlook.com (2603:10b6:610:56:cafe::83) by CH2PR14CA0054.outlook.office365.com (2603:10b6:610:56::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.50 via Frontend Transport; Thu, 29 Feb 2024 08:55:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by CH1PEPF0000A345.mail.protection.outlook.com (10.167.244.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Thu, 29 Feb 2024 08:55:01 +0000 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 29 Feb 2024 00:54:43 -0800 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 29 Feb 2024 00:54:42 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 29 Feb 2024 00:54:41 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy Subject: [edk2-devel] [edk2-redfish-client][PATCH 08/13] RedfishClientPkg/BootOptionDxe: ues RedfishHttpLib Date: Thu, 29 Feb 2024 16:54:41 +0800 Message-ID: <20240229085441.112518-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A345:EE_|CH2PR12MB4053:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f8f5384-33bc-4ccd-1681-08dc39041d71 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: ZCwgU4lIYZ3euJ9xTkNQIoon5PbezBbuYopASaRA3TnyXpzjeqng7RMHplwRv7Os+vGcLcHnOnre28eQfHE6ve9vslLkSAmGPt4XGv3lBBv8a92MyiPhphUIjhFsk4U1A7HgT9XTVpMMtYSWc+jXpobt5IJhF3baY8EAhHlFUh23KYEFG5/RoaxdgPtNbIKAOPDnjx2er0sf4eA6NPaZTLa3X/PC4DQXQWQ6ZsvX2TfbTiW+1QClQ77m07ajBE7S3xWTOMhXqKEoZUj2qNH5Ej3RSNoakY5qtxb2bSIvawbCqTnuhmysk1ly1XNOaM/ERxhliw2FPTiw8vqFeKuQuLlSCVHbL241f9t6KToMo74bxAQsxYQ6ACTp83nHwGZVBK++HHKxWpbi+/CAIvyL0pWObKwFjMYhTMyUbf73kVa7f66egTdp8cnBfS2Aw+10aM8om2BoX1f4ChIXf6T+QJhlAv9TRtPheFzS7YY2DyvY3KW1tHabUs/pL3EM68KhemSkFSV9wk+9nF/lrh2RxoJdb6fhmFLGMExK5fxEvJLUplI1b4az2DhMy6JvBbd2PIJJSq0qNsbsxtG7gH4HU3aBxHw3G8jcvuPIzPomT50LJih9Jt951I+9Rplsdamcu6idSlzJ2eb72SCgcRjuCHxrfLNgSAd9bVTBnqscQ9EpB07PsUP4hAvu3CoKYI/iRtDzOCltm1Kaha1L7TO6W+th+SFnZp/emPyaF1I7dVY4kU7t377XSKkNrR0QNZzD X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 08:55:01.4652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f8f5384-33bc-4ccd-1681-08dc39041d71 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A345.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4053 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: yeDfIBJtqOlU2nLKQ4F2aAYvx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=qq0lAU1C; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Use EDK2 RedfishHttpLib to replace RedfishHttpCacheLib and RedfishLib Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- .../BootOption/v1_0_4/Dxe/BootOptionDxe.inf | 5 +- .../v1_0_4/Common/BootOptionCommon.c | 45 ++-------- .../BootOption/v1_0_4/Dxe/BootOptionDxe.c | 86 ++++--------------- 3 files changed, 26 insertions(+), 110 deletions(-) diff --git a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.= inf b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.inf index 00c1c5bba..cd3c1c711 100644 --- a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.inf +++ b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.inf @@ -1,7 +1,7 @@ ## @file # # (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
-# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserve= d. +# Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights re= served. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -32,13 +32,12 @@ BaseMemoryLib DebugLib EdkIIRedfishResourceConfigLib - RedfishLib + RedfishHttpLib RedfishFeatureUtilityLib RedfishResourceIdentifyLib UefiLib UefiDriverEntryPoint RedfishAddendumLib - RedfishHttpCacheLib UefiBootManagerLib DevicePathLib BaseLib diff --git a/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionC= ommon.c b/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionComm= on.c index f471c01c3..339c8ba04 100644 --- a/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionCommon.c +++ b/RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionCommon.c @@ -2,7 +2,7 @@ Redfish feature driver implementation - common functions =20 (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
- Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . + Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent @@ -449,7 +449,7 @@ RedfishProvisioningResourceCommon ( JsonWithAddendum =3D NULL; } =20 - Status =3D CreatePayloadToPostResource (Private->RedfishService, Private= ->Payload, Json, NULL, NULL); + Status =3D RedfishHttpPostResource (Private->RedfishService, Private->Ur= i, Json, &Response); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: post BootOption resource for %s failed: %r\n= ", __func__, BootOptionName, Status)); goto RELEASE_RESOURCE; @@ -482,12 +482,7 @@ RELEASE_RESOURCE: FreePool (Json); } =20 - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); + RedfishHttpFreeResponse (&Response); =20 return Status; } @@ -519,7 +514,6 @@ RedfishCheckResourceCommon ( BOOLEAN DeleteResourceRequired; EFI_STRING DevicePathString; CHAR8 *DevicePathAsciiString; - CHAR8 *AsciiUri; =20 if ((Private =3D=3D NULL) || IS_EMPTY_STRING (Json)) { return EFI_INVALID_PARAMETER; @@ -531,8 +525,6 @@ RedfishCheckResourceCommon ( DeleteResourceRequired =3D FALSE; BootOptionName =3D NULL; BootOption =3D NULL; - AsciiUri =3D NULL; - Response.Payload =3D NULL; Status =3D Private->JsonStructProtocol->ToStructure ( Private->JsonStr= uctProtocol, NULL, @@ -594,13 +586,7 @@ RedfishCheckResourceCommon ( // if (DeleteResourceRequired) { DEBUG ((REDFISH_BOOT_OPTION_DEBUG_TRACE, "%a: boot option %s is delete= d in system. Delete %s\n", __func__, BootOptionName, Private->Uri)); - AsciiUri =3D StrUnicodeToAscii (Private->Uri); - if (AsciiUri =3D=3D NULL) { - Status =3D EFI_OUT_OF_RESOURCES; - goto ON_RELEASE; - } - - Status =3D RedfishDeleteByUri (Private->RedfishService, AsciiUri, &Res= ponse); + Status =3D RedfishHttpDeleteResource (Private->RedfishService, Private= ->Uri, &Response); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: can not delete %s: %r\n", __func__, Privat= e->Uri, Status)); } @@ -631,16 +617,8 @@ ON_RELEASE: // // Release resource // - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); + RedfishHttpFreeResponse (&Response); =20 - // - // Release resource. - // Private->JsonStructProtocol->DestoryStructure ( Private->JsonStructProtocol, (EFI_REST_JSON_STRUCTURE_HEADER *)BootOpt= ion @@ -650,10 +628,6 @@ ON_RELEASE: FreePool (BootOptionName); } =20 - if (AsciiUri !=3D NULL) { - FreePool (AsciiUri); - } - return Status; } =20 @@ -748,7 +722,7 @@ RedfishUpdateResourceCommon ( // // PATCH back to instance // - Status =3D CreatePayloadToPatchResource (Private->RedfishService, Privat= e->Payload, Json, NULL); + Status =3D RedfishHttpPatchResource (Private->RedfishService, Private->U= ri, Json, &Response); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: patch resource for %s failed: %r\n", __func_= _, ConfigureLang, Status)); } @@ -763,12 +737,7 @@ ON_RELEASE: FreePool (ConfigureLang); } =20 - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); + RedfishHttpFreeResponse (&Response); =20 return Status; } diff --git a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.= c b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c index dc2bd9da8..7501c1a97 100644 --- a/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c +++ b/RedfishClientPkg/Features/BootOption/v1_0_4/Dxe/BootOptionDxe.c @@ -2,7 +2,7 @@ Redfish feature driver implementation - BootOption =20 (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
- Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . + Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent @@ -51,7 +51,7 @@ RedfishResourceProvisioningResource ( return EFI_NOT_READY; } =20 - Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, &Respon= se, TRUE); + Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, NULL, &= Response, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: get resource from: %s failed\n", __func__, U= ri)); return Status; @@ -68,20 +68,11 @@ RedfishResourceProvisioningResource ( // // Get latest ETag on URI and keep it in variable. // - RedfishHttpResetResource (Private->Uri); SetEtagFromUri (Private->RedfishService, Private->Uri, TRUE); } =20 - if (Private->Payload !=3D NULL) { - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); - Private->Payload =3D NULL; - } - + RedfishHttpFreeResponse (&Response); + Private->Payload =3D NULL; return Status; } =20 @@ -122,7 +113,7 @@ RedfishResourceConsumeResource ( return EFI_NOT_READY; } =20 - Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, &Respon= se, TRUE); + Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, NULL, &= Response, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: get resource from: %s failed\n", __func__, U= ri)); return Status; @@ -169,25 +160,9 @@ RedfishResourceConsumeResource ( FreePool (Etag); } =20 - if (Private->Payload !=3D NULL) { - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); - - if (PendingSettingResponse.Payload !=3D NULL) { - RedfishFreeResponse ( - PendingSettingResponse.StatusCode, - PendingSettingResponse.HeaderCount, - PendingSettingResponse.Headers, - PendingSettingResponse.Payload - ); - } - - Private->Payload =3D NULL; - } + RedfishHttpFreeResponse (&Response); + RedfishHttpFreeResponse (&PendingSettingResponse); + Private->Payload =3D NULL; =20 if (Private->Json !=3D NULL) { FreePool (Private->Json); @@ -261,7 +236,7 @@ RedfishResourceUpdate ( return EFI_NOT_READY; } =20 - Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, &Respon= se, TRUE); + Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, NULL, &= Response, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: get resource from: %s failed\n", __func__, U= ri)); return Status; @@ -281,22 +256,14 @@ RedfishResourceUpdate ( // // Get latest ETag on URI and keep it in variable. // - RedfishHttpResetResource (Private->Uri); SetEtagFromUri (Private->RedfishService, Private->Uri, TRUE); } =20 // // Release resource // - if (Private->Payload !=3D NULL) { - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); - Private->Payload =3D NULL; - } + RedfishHttpFreeResponse (&Response); + Private->Payload =3D NULL; =20 if (Private->Json !=3D NULL) { FreePool (Private->Json); @@ -339,7 +306,7 @@ RedfishResourceCheck ( return EFI_NOT_READY; } =20 - Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, &Respon= se, TRUE); + Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, NULL, &= Response, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: get resource from: %s failed\n", __func__, U= ri)); return Status; @@ -369,15 +336,8 @@ RedfishResourceCheck ( FreePool (Etag); } =20 - if (Private->Payload !=3D NULL) { - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); - Private->Payload =3D NULL; - } + RedfishHttpFreeResponse (&Response); + Private->Payload =3D NULL; =20 if (Private->Json !=3D NULL) { FreePool (Private->Json); @@ -420,7 +380,7 @@ RedfishResourceIdentify ( return EFI_NOT_READY; } =20 - Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, &Respon= se, TRUE); + Status =3D RedfishHttpGetResource (Private->RedfishService, Uri, NULL, &= Response, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: get resource from: %s failed\n", __func__, U= ri)); return Status; @@ -441,15 +401,8 @@ RedfishResourceIdentify ( // // Release resource // - if (Private->Payload !=3D NULL) { - RedfishFreeResponse ( - Response.StatusCode, - Response.HeaderCount, - Response.Headers, - Response.Payload - ); - Private->Payload =3D NULL; - } + RedfishHttpFreeResponse (&Response); + Private->Payload =3D NULL; =20 if (Private->Json !=3D NULL) { FreePool (Private->Json); @@ -531,11 +484,6 @@ RedfishResourceStop ( Private->RedfishService =3D NULL; } =20 - if (Private->Payload !=3D NULL) { - RedfishCleanupPayload (Private->Payload); - Private->Payload =3D NULL; - } - return EFI_SUCCESS; } =20 --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116149): https://edk2.groups.io/g/devel/message/116149 Mute This Topic: https://groups.io/mt/104640232/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-