diff options
author | Ashish Singhal <ashishsingha@nvidia.com> | 2019-01-11 03:27:08 +0800 |
---|---|---|
committer | Jiaxin Wu <Jiaxin.wu@intel.com> | 2019-01-14 13:12:17 +0800 |
commit | 22b35e8bd1f9aea7bbab3a26e8ab4df339454463 (patch) | |
tree | 2cc519dbe8bc2010da25f5c75eec949f49b09d13 /NetworkPkg/IpSecDxe | |
parent | 5bc96263ea2bfecb07deea81c68a6c3e226ebda1 (diff) | |
download | edk2-22b35e8bd1f9aea7bbab3a26e8ab4df339454463.tar.gz edk2-22b35e8bd1f9aea7bbab3a26e8ab4df339454463.tar.bz2 edk2-22b35e8bd1f9aea7bbab3a26e8ab4df339454463.zip |
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 <ashishsingha@nvidia.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/IpSecDxe')
-rw-r--r-- | NetworkPkg/IpSecDxe/IpSecDriver.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/NetworkPkg/IpSecDxe/IpSecDriver.c b/NetworkPkg/IpSecDxe/IpSecDriver.c index f66f89a439..3082d997b7 100644 --- a/NetworkPkg/IpSecDxe/IpSecDriver.c +++ b/NetworkPkg/IpSecDxe/IpSecDriver.c @@ -631,16 +631,11 @@ IpSecDriverEntryPoint ( return Status;
ON_UNINSTALL_IPSEC4_DB:
- gBS->UninstallMultipleProtocolInterfaces (
- ImageHandle,
- &gEfiDriverBindingProtocolGuid,
- &gIpSec4DriverBinding,
- &gEfiComponentName2ProtocolGuid,
- &gIpSecComponentName2,
- &gEfiComponentNameProtocolGuid,
- &gIpSecComponentName,
- NULL
- );
+ EfiLibUninstallDriverBindingComponentName2 (
+ &gIpSec4DriverBinding,
+ &gIpSecComponentName,
+ &gIpSecComponentName2
+ );
ON_UNINSTALL_IPSEC:
gBS->UninstallProtocolInterface (
|