From: SF Markus Elfring Subject: Re: [PATCH 00/39] drop null test before destroy functions Date: Mon, 14 Sep 2015 13:55:06 +0200 Message-ID: <55F6B59A.4040104@users.sourceforge.net> References: <1442146532-9100-1-git-send-email-Julia.Lawall@lip6.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Cc: iommu@lists.linux-foundation.org, dccp@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, ecryptfs@vger.kernel.org, dmaengine@vger.kernel.org, sergey.senozhatsky@gmail.com, Dan Williams , cluster-devel@redhat.com, intel-wired-lan@lists.osuosl.org, Mitch Williams , John Ronciak , Matthew Vick , Don Skidmore , Carolyn Wyborny , Shannon Nelson , Jesse Brandeburg , linux-nfs@vger.kernel.org, linux-raid@vger.kernel.org, netdev@vger.kernel.org, linux-atm-general@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-usb@vger.kernel.org, linux To: Julia Lawall , kernel-janitors@vger.kernel.org Return-path: In-Reply-To: <1442146532-9100-1-git-send-email-Julia.Lawall@lip6.fr> Sender: ecryptfs-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org > Recent commits to kernel/git/torvalds/linux.git have made the following > functions able to tolerate NULL arguments: > > kmem_cache_destroy (commit 3942d29918522) > mempool_destroy (commit 4e3ca3e033d1) > dma_pool_destroy (commit 44d7175da6ea) How do you think about to extend an other SmPL script? Related topic: scripts/coccinelle/free: Delete NULL test before freeing functions https://systeme.lip6.fr/pipermail/cocci/2015-May/001960.html https://www.mail-archive.com/cocci@systeme.lip6.fr/msg01855.html > If these changes are OK, I will address the remainder later. Would anybody like to reuse my general SmPL approach for similar source code clean-up? Regards, Markus