From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 384F3A04E6; Wed, 18 Nov 2020 03:41:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8087D58C4; Wed, 18 Nov 2020 03:41:51 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by dpdk.org (Postfix) with ESMTP id 352F24C90 for ; Wed, 18 Nov 2020 03:41:49 +0100 (CET) Received: from DGGEMM401-HUB.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4CbRrv2ZBczVpQ0; Wed, 18 Nov 2020 10:41:19 +0800 (CST) Received: from DGGEMM421-HUB.china.huawei.com (10.1.198.38) by DGGEMM401-HUB.china.huawei.com (10.3.20.209) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 18 Nov 2020 10:41:45 +0800 Received: from DGGEMM513-MBX.china.huawei.com ([169.254.1.200]) by dggemm421-hub.china.huawei.com ([10.1.198.38]) with mapi id 14.03.0487.000; Wed, 18 Nov 2020 10:41:37 +0800 From: wangyunjian To: Suanming Mou , "dev@dpdk.org" CC: "matan@mellanox.com" , "shahafs@mellanox.com" , "viacheslavo@mellanox.com" , "Lilijun (Jerry)" , xudingke Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: remove unnecessary NULL check Thread-Index: AQHWvVDT3sqMVWs/CkO8HDWuJQQ8d6nNLdBw Date: Wed, 18 Nov 2020 02:41:37 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60DB1CC3B@dggemm513-mbx.china.huawei.com> References: <1585650269-11556-1-git-send-email-wangyunjian@huawei.com> <2b575415-7f73-d1d9-6b47-3008651b8c77@nvidia.com> In-Reply-To: <2b575415-7f73-d1d9-6b47-3008651b8c77@nvidia.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.187.156] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] net/mlx5: remove unnecessary NULL check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" T0ssIHBsZWFzZSByZWplY3QgdGhpcyBwYXRjaC4NCg0KVGhhbmtzLA0KWXVuamlhbg0KDQo+IC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFN1YW5taW5nIE1vdSBbbWFpbHRvOnN1 YW5taW5nbUBudmlkaWEuY29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIE5vdmVtYmVyIDE4LCAyMDIw IDEwOjE2IEFNDQo+IFRvOiB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT47IGRl dkBkcGRrLm9yZw0KPiBDYzogbWF0YW5AbWVsbGFub3guY29tOyBzaGFoYWZzQG1lbGxhbm94LmNv bTsNCj4gdmlhY2hlc2xhdm9AbWVsbGFub3guY29tOyBMaWxpanVuIChKZXJyeSkgPGplcnJ5Lmxp bGlqdW5AaHVhd2VpLmNvbT47IHh1ZGluZ2tlDQo+IDx4dWRpbmdrZUBodWF3ZWkuY29tPg0KPiBT dWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9tbHg1OiByZW1vdmUgdW5uZWNlc3Nh cnkgTlVMTCBjaGVjaw0KPiANCj4gSGkgWXVuamlhbiwNCj4gDQo+IEFzIHRoZSBjb2RlIGNoYW5n ZWQsIEkgdGhpbmsgdGhpcyBwYXRjaCBpcyBub3QgbmVlZGVkIGFueW1vcmUuDQo+IA0KPiBUaGFu a3MsDQo+IFN1YW5taW5nTW91DQo+IA0KPiBPbi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