From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (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 1419D21E43B44 for ; Fri, 22 Sep 2017 01:37:08 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DEDF882047 for ; Fri, 22 Sep 2017 14:12:56 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D300682046 for ; Fri, 22 Sep 2017 14:12:56 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS for ; Fri, 22 Sep 2017 14:12:56 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Fri, 22 Sep 2017 14:10:12 +0530 From: Santhapur Naveen To: "edk2-devel@lists.01.org" Thread-Topic: Repeated condition check Thread-Index: AdMx2S+NdBBnOF5gSMOFWy5SEenozABpO22A Date: Fri, 22 Sep 2017 08:40:11 +0000 Message-ID: <625A2455CC232F40B0F38F05ACED6D97012CA99E6A@VENUS1.in.megatrends.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.77] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23344.006 X-TM-AS-Result: No--9.702-5.0-31-10 X-imss-scan-details: No--9.702-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23344.006 X-TMASE-Result: 10--9.701600-10.000000 X-TMASE-MatchedRID: 7ySqCuYCpfhqia4DgZhuqhMMmcrjEONdUd7Bjfo+5jRm60OoujMOyIo5 BSI6pnHY75k4XZDkrm6GFMx/owYA7ZUxWI+YhDOFA9lly13c/gHSL+EVfOJR01vo8FSqar5S6T4 iyGKz0WfAvNYVAhRWs3ER5rHmG8WqVcDdOoYqfKqeAiCmPx4NwNivpTdmVCR22bNx1HEv7HAqtq 5d3cxkNQeLwI2mrYSfbT/14cg7gu/PztBtbBNUe8GU1P7aLP9TEiLwVODhqj8= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 Subject: Re: Repeated condition check X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 08:37:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello guys, Any update? Thank you Naveen -----Original Message----- From: Santhapur Naveen=20 Sent: Wednesday, September 20, 2017 12:05 PM To: edk2-devel@lists.01.org Subject: Repeated condition check Hi all, There is a redundant condition check in the API PxeBcIcmp6ErrorDpcHandle() VOID EFIAPI PxeBcIcmp6ErrorDpcHandle ( IN VOID *Context ) { ... if (Type !=3D ICMP_V6_DEST_UNREACHABLE && Type !=3D ICMP_V6_PACKET_TOO_BIG && -Type !=3D ICMP_V6_PACKET_TOO_BIG && +Type !=3D ICMP_V6_TIME_EXCEEDED && Type !=3D ICMP_V6_PARAMETER_PROBLEM) { // // The type of the receveid packet should be an ICMP6 error message. // gBS->SignalEvent (RxData->RecycleSignal); goto ON_EXIT; } ... } Unfortunately, some error checking tools were not able to capture this. Please confirm and take the necessary action. Thank you Naveen