summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/TcpDxe
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2016-05-19 11:49:18 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2016-05-20 12:39:52 +0800
commit72a4f34eab072132652565dd6bed24ec8d553aac (patch)
treefbd76ab82a6c3975be4f43a0bda97c9cd97d58e8 /NetworkPkg/TcpDxe
parent2be45bfe2779043bc3566e879e7ec279412012dc (diff)
downloadedk2-72a4f34eab072132652565dd6bed24ec8d553aac.tar.gz
edk2-72a4f34eab072132652565dd6bed24ec8d553aac.tar.bz2
edk2-72a4f34eab072132652565dd6bed24ec8d553aac.zip
NetworkPkg/TcpDxe: Remove the status check of SockProcessRcvToken
SockProcessRcvToken only returns the number of the received bytes, not an EFI Status. Cc: "Siyuan Fu" <siyuan.fu@intel.com> Cc: "Jiaxin Wu" <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg/TcpDxe')
-rw-r--r--NetworkPkg/TcpDxe/SockInterface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/NetworkPkg/TcpDxe/SockInterface.c b/NetworkPkg/TcpDxe/SockInterface.c
index 4abda74220..1f3524bc1b 100644
--- a/NetworkPkg/TcpDxe/SockInterface.c
+++ b/NetworkPkg/TcpDxe/SockInterface.c
@@ -724,11 +724,7 @@ SockRcv (
}
if (RcvdBytes != 0) {
- Status = SockProcessRcvToken (Sock, RcvToken);
-
- if (EFI_ERROR (Status)) {
- goto Exit;
- }
+ SockProcessRcvToken (Sock, RcvToken);
Status = Sock->ProtoHandler (Sock, SOCK_CONSUMED, NULL);
} else {