From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A20EFC4E0 for ; Thu, 23 Jun 2016 11:03:41 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 23 Jun 2016 02:03:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,515,1459839600"; d="scan'208";a="723835825" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jun 2016 02:03:39 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX108.ger.corp.intel.com (163.33.3.3) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 23 Jun 2016 10:03:38 +0100 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.193]) by irsmsx155.ger.corp.intel.com ([169.254.14.34]) with mapi id 14.03.0248.002; Thu, 23 Jun 2016 10:03:38 +0100 From: "Jastrzebski, MichalX K" To: "Richardson, Bruce" CC: "Azarewicz, PiotrX T" , "Mrozowicz, SlawomirX" , "dev@dpdk.org" Thread-Topic: [PATCH] lpm: unchecked return value Thread-Index: AQHRp5KDSB8yq08AuUCxztS3iqNGgp+1IIYAgEHb12D///u6gIAAEw3w Date: Thu, 23 Jun 2016 09:03:38 +0000 Message-ID: <60ABE07DBB3A454EB7FAD707B4BB158213AADF64@IRSMSX109.ger.corp.intel.com> References: <1461761554-5900-1-git-send-email-slawomirx.mrozowicz@intel.com> <20160503143404.GA22728@bricha3-MOBL3> <158888A50F43E34AAE179517F56C97455A4043@IRSMSX103.ger.corp.intel.com> <4837007523CC9A4B9414D20C13DE6E64136B3E3D@IRSMSX102.ger.corp.intel.com> <60ABE07DBB3A454EB7FAD707B4BB158213AADDBC@IRSMSX109.ger.corp.intel.com> <20160623084822.GA10864@bricha3-MOBL3> In-Reply-To: <20160623084822.GA10864@bricha3-MOBL3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] lpm: unchecked return value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 09:03:42 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBSaWNoYXJkc29uLCBCcnVjZQ0K PiBTZW50OiBUaHVyc2RheSwgSnVuZSAyMywgMjAxNiAxMDo0OCBBTQ0KPiBUbzogSmFzdHJ6ZWJz a2ksIE1pY2hhbFggSyA8bWljaGFseC5rLmphc3RyemVic2tpQGludGVsLmNvbT4NCj4gQ2M6IEF6 YXJld2ljeiwgUGlvdHJYIFQgPHBpb3RyeC50LmF6YXJld2ljekBpbnRlbC5jb20+OyBNcm96b3dp Y3osDQo+IFNsYXdvbWlyWCA8c2xhd29taXJ4Lm1yb3pvd2ljekBpbnRlbC5jb20+OyBkZXZAZHBk ay5vcmcNCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gbHBtOiB1bmNoZWNrZWQgcmV0dXJuIHZhbHVl DQo+IA0KPiBPbiBUaHUsIEp1biAyMywgMjAxNiBhdCAwOToxMzoyMkFNICswMTAwLCBKYXN0cnpl YnNraSwgTWljaGFsWCBLIHdyb3RlOg0KPiA+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N Cj4gPiA+IEZyb206IGRldiBbbWFpbHRvOmRldi1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYg T2YgQXphcmV3aWN6LA0KPiBQaW90clggVA0KPiA+ID4gU2VudDogVGh1cnNkYXksIE1heSAxMiwg MjAxNiAxOjIwIFBNDQo+ID4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