Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754655AbbGNXDE (ORCPT ); Tue, 14 Jul 2015 19:03:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44434 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbbGNXDC (ORCPT ); Tue, 14 Jul 2015 19:03:02 -0400 Date: Tue, 14 Jul 2015 16:03:00 -0700 From: Andrew Morton To: Joe Perches Cc: Julia Lawall , Sergey Senozhatsky , Minchan Kim , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Michal Hocko , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Subject: Re: [PATCH V2] checkpatch: Add some _destroy functions to NEEDLESS_IF tests Message-Id: <20150714160300.e59bec100e2ba090bc5e2107@linux-foundation.org> In-Reply-To: <1433915549.2730.107.camel@perches.com> References: <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <20150609142523.b717dba6033ee08de997c8be@linux-foundation.org> <1433894769.2730.87.camel@perches.com> <1433911166.2730.98.camel@perches.com> <1433915549.2730.107.camel@perches.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 29 On Tue, 09 Jun 2015 22:52:29 -0700 Joe Perches wrote: > Sergey Senozhatsky has modified several destroy functions that can > now be called with NULL values. > > - kmem_cache_destroy() > - mempool_destroy() > - dma_pool_destroy() > > Update checkpatch to warn when those functions are preceded by an if. > > Update checkpatch to --fix all the calls too only when the code style > form is using leading tabs. > > from: > if (foo) > (foo); > to: > (foo); There's also zpool_destroy_pool() and zs_destroy_pool(). Did we decide they're not worth bothering about? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/