From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=203.199.198.232; helo=imsva.in.megatrends.com; envelope-from=naveens@amiindia.co.in; receiver=edk2-devel@lists.01.org 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 1844721E1B768 for ; Sun, 24 Sep 2017 22:09:15 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F41F82047; Mon, 25 Sep 2017 10:45:08 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3233C82046; Mon, 25 Sep 2017 10:45:08 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Mon, 25 Sep 2017 10:45:08 +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; Mon, 25 Sep 2017 10:42:22 +0530 From: Santhapur Naveen To: "Wu, Jiaxin" , "edk2-devel@lists.01.org" CC: "Ye, Ting" , "Fu, Siyuan" Thread-Topic: Repeated condition check Thread-Index: AdMx2S+NdBBnOF5gSMOFWy5SEenozABpO22AAI8gkzAAAD14QAAAKwfwAAAgH/A= Date: Mon, 25 Sep 2017 05:12:22 +0000 Message-ID: <625A2455CC232F40B0F38F05ACED6D97012CA9A36F@VENUS1.in.megatrends.com> References: <625A2455CC232F40B0F38F05ACED6D97012CA99E6A@VENUS1.in.megatrends.com> <895558F6EA4E3B41AC93A00D163B7274163374E0@SHSMSX103.ccr.corp.intel.com> <625A2455CC232F40B0F38F05ACED6D97012CA9A348@VENUS1.in.megatrends.com> <895558F6EA4E3B41AC93A00D163B727416337510@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <895558F6EA4E3B41AC93A00D163B727416337510@SHSMSX103.ccr.corp.intel.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-23350.004 X-TM-AS-Result: No--33.726-5.0-31-10 X-imss-scan-details: No--33.726-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23350.004 X-TMASE-Result: 10--33.725800-10.000000 X-TMASE-MatchedRID: 6otD/cJAac2QYPjOr7kDBE4Et37YzhXU+KgiyLtJrSCgOUc+PAfSO692 QmYP1lUI545k976poTk7QlE0DAcVy6ZY4PxfRMWE5gCHftmwEMLy5N/pThJQg8xA+XwuUQ4a5/U VG9sOrBVwItruhmfPklLJY43BZPdRu9Q93luDLD+M29hkek7Xd/Tcf8Av+QSAnvbaEOoeixMtVZ zBU7RF6RpRvzsxS9hs7IkgjH5j+1g/VllpilrVGE+4wmL9kCTxEmv0D+xnQZ/SYAzZ6KmqWprKw 2/hI6KDF8QwDXOzLg6Cz1NF+/rlJn+OhC1J6Q0sngIgpj8eDcDInWAWA4yE6aKD0aiE4+c4rzka OGjo+VYLbigRnpKlKT4yqD4LKu3A 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: Mon, 25 Sep 2017 05:09:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Jiaxin, Created a bug in the Bugzilla site. Here's the bug link https://bugzilla.tianocore.org/show_bug.cgi?id=3D718 Thank you Naveen -----Original Message----- From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]=20 Sent: Monday, September 25, 2017 10:40 AM To: Santhapur Naveen; edk2-devel@lists.01.org Cc: Ye, Ting; Fu, Siyuan Subject: RE: Repeated condition check Thanks Naveen, we appreciate your report:). > -----Original Message----- > From: Santhapur Naveen [mailto:naveens@amiindia.co.in] > Sent: Monday, September 25, 2017 1:05 PM > To: Wu, Jiaxin ; edk2-devel@lists.01.org > Cc: Ye, Ting ; Fu, Siyuan > Subject: RE: Repeated condition check >=20 > Hi Jiaxin, >=20 > Duly noted. > Will mention one of you in the TO/CC list from here onwards. >=20 > Thank you > Naveen >=20 > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > Sent: Monday, September 25, 2017 10:33 AM > To: Santhapur Naveen; edk2-devel@lists.01.org > Cc: Ye, Ting; Fu, Siyuan > Subject: RE: Repeated condition check >=20 > Hi Naveen, >=20 > We may ignore your email if you don't attach any specific receiver=20 > (TO OR CC list):(. >=20 > For the issue, I agree the fix. So, can you help to report the issue on B= ugzilla? > We will create the formal patch to fix it. >=20 > Thanks, > Jiaxin >=20 >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > Of Santhapur Naveen > > Sent: Friday, September 22, 2017 4:40 PM > > To: edk2-devel@lists.01.org > > Subject: Re: [edk2] Repeated condition check > > > > Hello guys, > > > > Any update? > > > > Thank you > > Naveen > > > > -----Original Message----- > > From: Santhapur Naveen > > 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 > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel