X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FHttpUtilitiesDxe%2FHttpUtilitiesDxe.c;h=a3e1ea4691ef4948b490058bb44f4808c4c4e93a;hb=d1050b9dff1cace252aff86630bfdb59dff5f507;hp=4c1e44d24cc0520aa1e5401376877f709f529227;hpb=2f88bd3a1296c522317f1c21377876de63de5be7;p=mirror_edk2.git diff --git a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c index 4c1e44d24c..a3e1ea4691 100644 --- a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c +++ b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c @@ -9,7 +9,6 @@ #include "HttpUtilitiesDxe.h" - /** Unloads an image. @@ -25,14 +24,13 @@ HttpUtilitiesDxeUnload ( IN EFI_HANDLE ImageHandle ) { - EFI_STATUS Status; - UINTN HandleNum; - EFI_HANDLE *HandleBuffer; - UINT32 Index; - EFI_HTTP_UTILITIES_PROTOCOL *HttpUtilitiesProtocol; - + EFI_STATUS Status; + UINTN HandleNum; + EFI_HANDLE *HandleBuffer; + UINT32 Index; + EFI_HTTP_UTILITIES_PROTOCOL *HttpUtilitiesProtocol; - HandleBuffer = NULL; + HandleBuffer = NULL; // // Locate all the handles with HttpUtilities protocol. @@ -55,7 +53,7 @@ HttpUtilitiesDxeUnload ( Status = gBS->OpenProtocol ( HandleBuffer[Index], &gEfiHttpUtilitiesProtocolGuid, - (VOID **) &HttpUtilitiesProtocol, + (VOID **)&HttpUtilitiesProtocol, ImageHandle, NULL, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL @@ -69,7 +67,8 @@ HttpUtilitiesDxeUnload ( // Status = gBS->UninstallMultipleProtocolInterfaces ( HandleBuffer[Index], - &gEfiHttpUtilitiesProtocolGuid, HttpUtilitiesProtocol, + &gEfiHttpUtilitiesProtocolGuid, + HttpUtilitiesProtocol, NULL ); if (EFI_ERROR (Status)) { @@ -80,7 +79,6 @@ HttpUtilitiesDxeUnload ( return EFI_SUCCESS; } - /** This is the declaration of an EFI image entry point. This entry point is the same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including @@ -99,9 +97,9 @@ HttpUtilitiesDxeDriverEntryPoint ( IN EFI_SYSTEM_TABLE *SystemTable ) { - EFI_STATUS Status; + EFI_STATUS Status; - EFI_HANDLE Handle; + EFI_HANDLE Handle; Handle = NULL; @@ -117,4 +115,3 @@ HttpUtilitiesDxeDriverEntryPoint ( return Status; } -