]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/TcpDxe: Remove the redundant code.
authorJiaxin Wu <jiaxin.wu@intel.com>
Fri, 22 Dec 2017 03:32:33 +0000 (11:32 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Tue, 26 Dec 2017 08:43:29 +0000 (16:43 +0800)
The function SockGroup() is not used by any other code. So,
it can be deleted.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wang Fan <fan.wang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/TcpDxe/SockInterface.c
NetworkPkg/TcpDxe/Socket.h

index 0248cdf6ff62f68b96c2e9b6c2b635cc7e76f31c..0dfc0a71d37ce605f2ce838a97b4e0173731edb7 100644 (file)
@@ -1079,52 +1079,6 @@ SockGetMode (
   return Sock->ProtoHandler (Sock, SOCK_MODE, Mode);\r
 }\r
 \r
   return Sock->ProtoHandler (Sock, SOCK_MODE, Mode);\r
 }\r
 \r
-/**\r
-  Configure the low level protocol to join a multicast group for\r
-  this socket's connection.\r
-\r
-  @param[in]  Sock             Pointer to the socket of the connection to join the\r
-                               specific multicast group.\r
-  @param[in]  GroupInfo        Pointer to the multicast group info.\r
-\r
-  @retval EFI_SUCCESS          The configuration completed successfully.\r
-  @retval EFI_ACCESS_DENIED    Failed to get the lock to access the socket.\r
-  @retval EFI_NOT_STARTED      The socket is not configured.\r
-\r
-**/\r
-EFI_STATUS\r
-SockGroup (\r
-  IN SOCKET *Sock,\r
-  IN VOID   *GroupInfo\r
-  )\r
-{\r
-  EFI_STATUS  Status;\r
-\r
-  Status = EfiAcquireLockOrFail (&(Sock->Lock));\r
-\r
-  if (EFI_ERROR (Status)) {\r
-\r
-    DEBUG (\r
-      (EFI_D_ERROR,\r
-      "SockGroup: Get the access for socket failed with %r",\r
-      Status)\r
-      );\r
-\r
-    return EFI_ACCESS_DENIED;\r
-  }\r
-\r
-  if (SOCK_IS_UNCONFIGURED (Sock)) {\r
-    Status = EFI_NOT_STARTED;\r
-    goto Exit;\r
-  }\r
-\r
-  Status = Sock->ProtoHandler (Sock, SOCK_GROUP, GroupInfo);\r
-\r
-Exit:\r
-  EfiReleaseLock (&(Sock->Lock));\r
-  return Status;\r
-}\r
-\r
 /**\r
   Add or remove route information in IP route table associated\r
   with this socket.\r
 /**\r
   Add or remove route information in IP route table associated\r
   with this socket.\r
index f7f4a7ad86640fc0690cbe7a8714bd07c89ba62c..26c5f4e4269ce03ce944a322548bac7fc43accda 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Common head file for TCP socket.\r
 \r
 /** @file\r
   Common head file for TCP socket.\r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2017, 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
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -899,25 +899,6 @@ SockGetMode (
   IN OUT VOID   *Mode\r
   );\r
 \r
   IN OUT VOID   *Mode\r
   );\r
 \r
-/**\r
-  Configure the low level protocol to join a multicast group for\r
-  this socket's connection.\r
-\r
-  @param[in]  Sock             Pointer to the socket of the connection to join the\r
-                               specific multicast group.\r
-  @param[in]  GroupInfo        Pointer to the multicast group information.\r
-\r
-  @retval EFI_SUCCESS          The configuration completed successfully.\r
-  @retval EFI_ACCESS_DENIED    Failed to get the lock to access the socket.\r
-  @retval EFI_NOT_STARTED      The socket is not configured.\r
-\r
-**/\r
-EFI_STATUS\r
-SockGroup (\r
-  IN SOCKET *Sock,\r
-  IN VOID   *GroupInfo\r
-  );\r
-\r
 /**\r
   Add or remove route information in IP route table associated\r
   with this socket.\r
 /**\r
   Add or remove route information in IP route table associated\r
   with this socket.\r