From 22b35e8bd1f9aea7bbab3a26e8ab4df339454463 Mon Sep 17 00:00:00 2001 From: Ashish Singhal Date: Fri, 11 Jan 2019 03:27:08 +0800 Subject: NetworkPkg: Protocol Uninstallation Cleanup Use UEFILib provided protocol uninstallation abstraction instead of direct API for a proper cleanup. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1444 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ashish Singhal Reviewed-by: Wu Jiaxin --- NetworkPkg/TcpDxe/TcpDriver.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'NetworkPkg/TcpDxe') diff --git a/NetworkPkg/TcpDxe/TcpDriver.c b/NetworkPkg/TcpDxe/TcpDriver.c index 2d4b16cd9e..00d172b019 100644 --- a/NetworkPkg/TcpDxe/TcpDriver.c +++ b/NetworkPkg/TcpDxe/TcpDriver.c @@ -202,16 +202,11 @@ TcpDriverEntryPoint ( &gTcpComponentName2 ); if (EFI_ERROR (Status)) { - gBS->UninstallMultipleProtocolInterfaces ( - ImageHandle, - &gEfiDriverBindingProtocolGuid, - &gTcp4DriverBinding, - &gEfiComponentName2ProtocolGuid, - &gTcpComponentName2, - &gEfiComponentNameProtocolGuid, - &gTcpComponentName, - NULL - ); + EfiLibUninstallDriverBindingComponentName2 ( + &gTcp4DriverBinding, + &gTcpComponentName, + &gTcpComponentName2 + ); return Status; } -- cgit v1.2.3