From 5679a62a0fb22adadd6483d4d4765397015695f0 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Wed, 25 May 2016 11:39:11 +0800 Subject: [PATCH] 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 --- MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 { -- 2.39.2