From: Thomas Huth Date: Thu, 19 Jan 2017 09:37:31 +0000 (+0800) Subject: NetworkPkg: Remove superfluous return statement. X-Git-Tag: edk2-stable201903~4702 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f3fa35a00233b6f2e7653b3b8c3e2b28b8ecbe7f NetworkPkg: Remove superfluous return statement. If the code eventually returns "Status" anyway, it does not make sense to explicitely return "Status" in case of an error, too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Huth Reviewed-by: Wu Jiaxin --- diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c b/NetworkPkg/HttpDxe/HttpsSupport.c index 77e5371242..f0077dd4b8 100644 --- a/NetworkPkg/HttpDxe/HttpsSupport.c +++ b/NetworkPkg/HttpDxe/HttpsSupport.c @@ -1294,10 +1294,6 @@ TlsCloseSession ( FreePool (BufferOut); NetbufFree (PacketOut); - if (EFI_ERROR (Status)) { - return Status; - } - return Status; }