From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Norris Date: Tue, 22 Sep 2015 00:07:18 +0000 Subject: Re: [PATCH 01/39] mtd: nandsim: drop null test before destroy functions Message-Id: <20150922000718.GK31505@google.com> List-Id: References: <1442146532-9100-1-git-send-email-Julia.Lawall@lip6.fr> <1442146532-9100-2-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1442146532-9100-2-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: David Woodhouse , sergey.senozhatsky@gmail.com, kernel-janitors@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org On Sun, Sep 13, 2015 at 02:14:54PM +0200, Julia Lawall wrote: > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) > \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); > // > > Signed-off-by: Julia Lawall Applied patches 1 and 36 to l2-mtd.git