From: Jiaxin Wu Date: Wed, 25 May 2016 03:39:11 +0000 (+0800) Subject: MdeModulePkg: Fix incorrect status check for SockProcessRcvToken X-Git-Tag: edk2-stable201903~6939 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=5679a62a0fb22adadd6483d4d4765397015695f0 MdeModulePkg: Fix incorrect status check for SockProcessRcvToken This patch is used to remove the status check for SockProcessRcvToken. It's not return EFI_STATUS. Cc: Fu Siyuan Cc: Ye Ting Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan --- diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c index feed86c590..c14fcd7a8d 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c @@ -1,7 +1,7 @@ /** @file Interface function of the Socket. -Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -697,11 +697,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 {