From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DC69F81E9C for ; Thu, 19 Jan 2017 16:39:30 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 19 Jan 2017 16:39:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,256,1477983600"; d="scan'208";a="32944302" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 19 Jan 2017 16:39:30 -0800 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 19 Jan 2017 16:39:30 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 19 Jan 2017 16:39:29 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Fri, 20 Jan 2017 08:39:28 +0800 From: "Wu, Jiaxin" To: Thomas Huth , "edk2-devel@ml01.01.org" CC: "Fu, Siyuan" Thread-Topic: [edk2] [PATCH] NetworkPkg: Remove superfluous return statement. Thread-Index: AQHScje19PrWnUkHm0mu18iZ20AEBqFAhtSg Date: Fri, 20 Jan 2017 00:39:27 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B72741629635E@SHSMSX103.ccr.corp.intel.com> References: <1484818651-26205-1-git-send-email-thuth@redhat.com> In-Reply-To: <1484818651-26205-1-git-send-email-thuth@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDFkMzg2MmUtNmI0ZS00NTc5LTlhMzktMGUyN2MzNzY2MjEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImpJbkRWa2ZyRUFwN2JLa3lmbTZUc2xRZjNLcDIxN1NjYjBYNGtjNGRLYlE9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] NetworkPkg: Remove superfluous return statement. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 00:39:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Wu Jiaxin Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Thomas Huth > Sent: Thursday, January 19, 2017 5:38 PM > To: edk2-devel@ml01.01.org > Cc: Fu, Siyuan ; Wu, Jiaxin > Subject: [edk2] [PATCH] NetworkPkg: Remove superfluous return statement. >=20 > If the code eventually returns "Status" anyway, it does not make > sense to explicitely return "Status" in case of an error, too. >=20 > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Thomas Huth > --- > NetworkPkg/HttpDxe/HttpsSupport.c | 4 ---- > 1 file changed, 4 deletions(-) >=20 > diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c > b/NetworkPkg/HttpDxe/HttpsSupport.c > index 77e5371..f0077dd 100644 > --- a/NetworkPkg/HttpDxe/HttpsSupport.c > +++ b/NetworkPkg/HttpDxe/HttpsSupport.c > @@ -1294,10 +1294,6 @@ TlsCloseSession ( > FreePool (BufferOut); > NetbufFree (PacketOut); >=20 > - if (EFI_ERROR (Status)) { > - return Status; > - } > - > return Status; > } >=20 > -- > 1.8.3.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel