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>
This commit is contained in:
Gary Lin 2016-05-19 11:49:18 +08:00 committed by Jiaxin Wu
parent 2be45bfe27
commit 72a4f34eab
1 changed files with 1 additions and 5 deletions

View File

@ -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 {