From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 E454582101 for ; Tue, 20 Dec 2016 00:14:58 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 20 Dec 2016 00:14:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,377,1477983600"; d="scan'208";a="800363890" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 20 Dec 2016 00:14:58 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 20 Dec 2016 00:14:58 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 20 Dec 2016 00:14:57 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.9]) by shsmsx102.ccr.corp.intel.com ([169.254.2.54]) with mapi id 14.03.0248.002; Tue, 20 Dec 2016 16:14:54 +0800 From: "Wu, Hao A" To: Heyi Guo , "edk2-devel@lists.01.org" CC: "Ye, Ting" , "Gao, Liming" , "Wu, Jiaxin" , "Yao, Jiewen" , "Kinney, Michael D" , "Fu, Siyuan" Thread-Topic: [edk2] [PATCH 0/6] Refine code logics to prevent possible mis-reports by static code checkers Thread-Index: AQHSVfz/JHYhkw3d2UWaK6ob5jUp56EMhMKAgAQBaPA= Date: Tue, 20 Dec 2016 08:14:54 +0000 Message-ID: References: <1481714811-12568-1-git-send-email-hao.a.wu@intel.com> <4f73905a-ab73-4fe9-5bf9-beac154da7c5@linaro.org> In-Reply-To: <4f73905a-ab73-4fe9-5bf9-beac154da7c5@linaro.org> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/6] Refine code logics to prevent possible mis-reports by static code checkers 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: Tue, 20 Dec 2016 08:14:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgSGV5aSwNCg0KRm9yIHRoZSB3YXJuaW5ncyByZXBvcnRlZCBieSB0aGUgc3RhdGljIGNoZWNr ZXJzIHlvdSBtZW50aW9uZWQsIGNvdWxkIHlvdQ0KaGVscCB0byBhbmFseXplIHRob3NlIGlzc3Vl cyBhbmQgZmluZCBvdXQgaWYgdGhlcmUgYXJlIHJlYWwgaXNzdWVzIGV4aXN0Pw0KDQpJZiB0aGVy ZSBhcmUgcmVhbCBjb2RlIGlzc3VlcywgSSB0aGluayB5b3UgY2FuIHJlcG9ydCB0aGVtIHRvIEJ1 Z3ppbGxhDQp3aXRoIHRoZSBhcHByb3ByaWF0ZSBjbGFzc2lmaWNhdGlvbiAoZS5nLiBTZWN1cml0 eSBvciBOb3QgU2VjdXJpdHkNClJlbGF0ZWQpLg0KDQpUaGFua3MgaW4gYWR2YW5jZS4NCg0KQmVz dCBSZWdhcmRzLA0KSGFvIFd1DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJv bTogZWRrMi1kZXZlbCBbbWFpbHRvOmVkazItZGV2ZWwtYm91bmNlc0BsaXN0cy4wMS5vcmddIE9u IEJlaGFsZiBPZiBIZXlpDQo+IEd1bw0KPiBTZW50OiBTdW5kYXksIERlY2VtYmVyIDE4LCAyMDE2 IDExOjA0IEFNDQo+IFRvOiBXdSwgSGFvIEE7IGVkazItZGV2Z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