Reviewed-by: Samer El-Haj-Mahmoud <[email protected]> -----Original Message----- From: edk2-devel [mailto:[email protected]] On Behalf Of Gary Lin Sent: Wednesday, May 18, 2016 10:49 PM To: [email protected] Cc: Siyuan Fu <[email protected]>; Jiaxin Wu <[email protected]> Subject: [edk2] [PATCH 2/2] NetworkPkg/TcpDxe: Remove the status check of SockProcessRcvToken
SockProcessRcvToken only returns the number of the received bytes, not an EFI Status. Cc: "Siyuan Fu" <[email protected]> Cc: "Jiaxin Wu" <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <[email protected]> --- NetworkPkg/TcpDxe/SockInterface.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/NetworkPkg/TcpDxe/SockInterface.c b/NetworkPkg/TcpDxe/SockInterface.c index 4abda74..1f3524b 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 { -- 2.8.2 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

