summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/TcpDxe
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2017-12-22 11:32:33 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2017-12-26 16:43:29 +0800
commit1697754b7eccdee954e36634e5fddb6c6a3fede9 (patch)
treedc5f5a6dcc9a68c32f0f873b8be6b011171f1aba /NetworkPkg/TcpDxe
parent8b40f01a3f03c16897a01b827b7e3e8943274aac (diff)
downloadedk2-1697754b7eccdee954e36634e5fddb6c6a3fede9.tar.gz
edk2-1697754b7eccdee954e36634e5fddb6c6a3fede9.tar.bz2
edk2-1697754b7eccdee954e36634e5fddb6c6a3fede9.zip
NetworkPkg/TcpDxe: Remove the redundant code.
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>
Diffstat (limited to 'NetworkPkg/TcpDxe')
-rw-r--r--NetworkPkg/TcpDxe/SockInterface.c46
-rw-r--r--NetworkPkg/TcpDxe/Socket.h21
2 files changed, 1 insertions, 66 deletions
diff --git a/NetworkPkg/TcpDxe/SockInterface.c b/NetworkPkg/TcpDxe/SockInterface.c
index 0248cdf6ff..0dfc0a71d3 100644
--- a/NetworkPkg/TcpDxe/SockInterface.c
+++ b/NetworkPkg/TcpDxe/SockInterface.c
@@ -1080,52 +1080,6 @@ SockGetMode (
}
/**
- Configure the low level protocol to join a multicast group for
- this socket's connection.
-
- @param[in] Sock Pointer to the socket of the connection to join the
- specific multicast group.
- @param[in] GroupInfo Pointer to the multicast group info.
-
- @retval EFI_SUCCESS The configuration completed successfully.
- @retval EFI_ACCESS_DENIED Failed to get the lock to access the socket.
- @retval EFI_NOT_STARTED The socket is not configured.
-
-**/
-EFI_STATUS
-SockGroup (
- IN SOCKET *Sock,
- IN VOID *GroupInfo
- )
-{
- EFI_STATUS Status;
-
- Status = EfiAcquireLockOrFail (&(Sock->Lock));
-
- if (EFI_ERROR (Status)) {
-
- DEBUG (
- (EFI_D_ERROR,
- "SockGroup: Get the access for socket failed with %r",
- Status)
- );
-
- return EFI_ACCESS_DENIED;
- }
-
- if (SOCK_IS_UNCONFIGURED (Sock)) {
- Status = EFI_NOT_STARTED;
- goto Exit;
- }
-
- Status = Sock->ProtoHandler (Sock, SOCK_GROUP, GroupInfo);
-
-Exit:
- EfiReleaseLock (&(Sock->Lock));
- return Status;
-}
-
-/**
Add or remove route information in IP route table associated
with this socket.
diff --git a/NetworkPkg/TcpDxe/Socket.h b/NetworkPkg/TcpDxe/Socket.h
index f7f4a7ad86..26c5f4e426 100644
--- a/NetworkPkg/TcpDxe/Socket.h
+++ b/NetworkPkg/TcpDxe/Socket.h
@@ -1,7 +1,7 @@
/** @file
Common head file for TCP socket.
- Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -900,25 +900,6 @@ SockGetMode (
);
/**
- Configure the low level protocol to join a multicast group for
- this socket's connection.
-
- @param[in] Sock Pointer to the socket of the connection to join the
- specific multicast group.
- @param[in] GroupInfo Pointer to the multicast group information.
-
- @retval EFI_SUCCESS The configuration completed successfully.
- @retval EFI_ACCESS_DENIED Failed to get the lock to access the socket.
- @retval EFI_NOT_STARTED The socket is not configured.
-
-**/
-EFI_STATUS
-SockGroup (
- IN SOCKET *Sock,
- IN VOID *GroupInfo
- );
-
-/**
Add or remove route information in IP route table associated
with this socket.