diff options
author | Gary Lin <glin@suse.com> | 2016-05-19 11:49:18 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-05-20 12:39:52 +0800 |
commit | 72a4f34eab072132652565dd6bed24ec8d553aac (patch) | |
tree | fbd76ab82a6c3975be4f43a0bda97c9cd97d58e8 | |
parent | 2be45bfe2779043bc3566e879e7ec279412012dc (diff) | |
download | edk2-platforms-72a4f34eab072132652565dd6bed24ec8d553aac.tar.xz |
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>
-rw-r--r-- | NetworkPkg/TcpDxe/SockInterface.c | 6 |
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 {
|