]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootDxe.c
NetworkPkg: Protocol Uninstallation Cleanup
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootDxe.c
index 7ec06f960ddeaeb14804dce4e1659e46024b9098..0b16f9564cda91ef1ffeb44f4e1a07937d2e4d3d 100644 (file)
@@ -1327,16 +1327,11 @@ HttpBootDxeDriverEntryPoint (
              &gHttpBootDxeComponentName2\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->UninstallMultipleProtocolInterfaces(\r
-           ImageHandle,\r
-           &gEfiDriverBindingProtocolGuid,\r
-           &gHttpBootIp4DxeDriverBinding,\r
-           &gEfiComponentName2ProtocolGuid,\r
-           &gHttpBootDxeComponentName2,\r
-           &gEfiComponentNameProtocolGuid,\r
-           &gHttpBootDxeComponentName,\r
-           NULL\r
-           );\r
+    EfiLibUninstallDriverBindingComponentName2(\r
+      &gHttpBootIp4DxeDriverBinding,\r
+      &gHttpBootDxeComponentName,\r
+      &gHttpBootDxeComponentName2\r
+      );\r
   }\r
   return Status;\r
 }\r