From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E41C24549D; Wed, 19 Jun 2024 02:15:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6D284021D; Wed, 19 Jun 2024 02:15:07 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 49B144014F for ; Wed, 19 Jun 2024 02:15:06 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 9748720B7004; Tue, 18 Jun 2024 17:15:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9748720B7004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1718756105; bh=lNO4S4HWK94Q5iiLW1Z7ZpRWyv/395alUyI8ZAxy5sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cb4phqOtjNsId0rAatD+GZbIGgLaCu/MbrgLj1JXxr1cPKf12IGlUnGgD9ZoVFEcP 6w/u4w80IbgQIbpyke5cj5fGfR3MnZYUnWdHTU1FZ6NBRuH+4X2jdkuZ/1ms6y1a/y MK8FcCEXYMtrHgTiGgaix0LIeXIco670iqU1F7y4= Date: Tue, 18 Jun 2024 17:15:05 -0700 From: Tyler Retzlaff To: Stephen Hemminger Cc: dev@dpdk.org, 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 Subject: Re: [PATCH] memzone: remove unnecessary null checks Message-ID: <20240619001505.GC13189@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20240618232508.21045-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240618232508.21045-1-stephen@networkplumber.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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 On Tue, Jun 18, 2024 at 04:25:08PM -0700, Stephen Hemminger wrote: > 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. > > Signed-off-by: Stephen Hemminger > --- Reviewed-by: Tyler Retzlaff