]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/IpSecDxe/Ikev2/Utility.c
NetworkPkg: Remove unused variables from IpSecDxe to fix GCC build.
[mirror_edk2.git] / NetworkPkg / IpSecDxe / Ikev2 / Utility.c
index f12766f3cbdadad5d1be988286555392c377e978..8769850d41bb5c723e402281750f42d96abc514a 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
   The Common operations used by IKE Exchange Process.\r
 \r
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -571,7 +572,6 @@ Ikev2ChildSaSessionReg (
   IKEV2_SESSION_COMMON         *SessionCommon;\r
   IKEV2_CHILD_SA_SESSION       *OldChildSaSession;\r
   IKEV2_SA_SESSION             *IkeSaSession;\r
-  IKEV2_SA_PARAMS              *SaParams;\r
   EFI_STATUS                   Status;\r
   UINT64                       Lifetime;\r
 \r
@@ -624,7 +624,6 @@ Ikev2ChildSaSessionReg (
   //\r
   // Start to count the lifetime of the IKE SA.\r
   //\r
-  SaParams = SessionCommon->SaParams;\r
   if (ChildSaSession->Spd->Data->ProcessingPolicy->SaLifetime.HardLifetime != 0){\r
     Lifetime = ChildSaSession->Spd->Data->ProcessingPolicy->SaLifetime.HardLifetime;\r
   } else {\r
@@ -928,6 +927,7 @@ Ikev2ChildSaSilentDelete (
       FreePool (Selector);\r
 \r
       Selector = AllocateZeroPool (SelectorSize);\r
+      ASSERT (Selector != NULL);\r
       Status   = EfiIpSecConfigGetNextSelector (\r
                    &Private->IpSecConfig,\r
                    IPsecConfigDataTypeSad,\r