]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Remove superfluous return statement.
authorThomas Huth <thuth@redhat.com>
Thu, 19 Jan 2017 09:37:31 +0000 (17:37 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Mon, 23 Jan 2017 02:27:57 +0000 (10:27 +0800)
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 <thuth@redhat.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/HttpDxe/HttpsSupport.c

index 77e5371242ef65ed7d6955a8774db48823aadf39..f0077dd4b8cbef6675ca475f63ac3491b28f4207 100644 (file)
@@ -1294,10 +1294,6 @@ TlsCloseSession (
   FreePool (BufferOut);
   NetbufFree (PacketOut);
 
-  if (EFI_ERROR (Status)) {
-    return Status;
-  }
-
   return Status;
 }