Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35940C27C79 for ; Wed, 19 Jun 2024 07:14:39 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 848CC427C4; Wed, 19 Jun 2024 09:14:38 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 67F864021D for ; Wed, 19 Jun 2024 09:14:31 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 38B0C20778; Wed, 19 Jun 2024 09:14:31 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [PATCH] memzone: remove unnecessary null checks Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Jun 2024 09:14:30 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F53D@smartserver.smartshare.dk> In-Reply-To: <20240618232508.21045-1-stephen@networkplumber.org> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] memzone: remove unnecessary null checks Thread-Index: AdrB1stFOSDmcvcdReG9+EWfFCPMlgAQXEjQ References: <20240618232508.21045-1-stephen@networkplumber.org> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Stephen Hemminger" , Cc: "Srikanth Yalavarthi" , "Kai Ji" , "Pablo de Lara" , "Chengwen Feng" , "Jeroen de Borst" , "Rushil Gupta" , "Joshua Washington" , "Devendra Singh Rawat" , "Alok Prasad" , "Jochen Behrens" , "Reshma Pattan" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: Stephen Hemminger [mailto:stephen@networkplumber.org] >=20 > The function rte_memzone_free() already checks if the argument > is NULL. Add it to the coccinelle fix script and correct > all the existing code. >=20 > Signed-off-by: Stephen Hemminger > --- Acked-by: Morten Br=F8rup