Skip to content

Commit

Permalink
RedfishClientPkg/MemoryCollectionDxe: ues RedfishHttpLib
Browse files Browse the repository at this point in the history
Use EDK2 RedfishHttpLib to replace RedfishHttpCacheLib and RedfishLib

Signed-off-by: Nickle Wang <[email protected]>
Cc: Abner Chang <[email protected]>
Cc: Igor Kulchytskyy <[email protected]>
  • Loading branch information
nicklela committed Feb 29, 2024
1 parent 19b36e0 commit 2f8d756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,7 @@ ReleaseCollectionResource (
//
// Release resource
//
if (Private->Response.Payload != NULL) {
RedfishFreeResponse (
Private->Response.StatusCode,
Private->Response.HeaderCount,
Private->Response.Headers,
Private->Response.Payload
);
Private->Response.StatusCode = NULL;
Private->Response.HeaderCount = 0;
Private->Response.Headers = NULL;
Private->Response.Payload = NULL;
}
RedfishHttpFreeResponse (&Private->Response);

if (Private->CollectionJson != NULL) {
FreePool (Private->CollectionJson);
Expand Down Expand Up @@ -289,7 +278,7 @@ CollectionHandler (
//
// Query collection from Redfish service.
//
Status = RedfishHttpGetResource (Private->RedfishService, Private->CollectionUri, &Private->Response, TRUE);
Status = RedfishHttpGetResource (Private->RedfishService, Private->CollectionUri, NULL, &Private->Response, TRUE);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_ERROR, "%a, unable to get resource from: %s :%r\n", __func__, Private->CollectionUri, Status));
goto ON_RELEASE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
ConverterCommonLib
MemoryAllocationLib
RedfishFeatureUtilityLib
RedfishLib
RedfishHttpLib
UefiLib
UefiDriverEntryPoint
UefiBootServicesTableLib
EdkIIRedfishResourceConfigLib
RedfishVersionLib
RedfishHttpCacheLib

[Protocols]
gEdkIIRedfishConfigHandlerProtocolGuid ## CONSUMED
Expand Down

0 comments on commit 2f8d756

Please sign in to comment.