From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 3/3] dm ioctl: Delete an unnecessary check before the function call "dm_table_destroy" Date: Fri, 6 Feb 2015 16:12:34 -0500 Message-ID: <20150206211234.GA14803@redhat.com> References: <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <54CF93BB.40206@users.sourceforge.net> <54CF9666.5060407@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <54CF9666.5060407@users.sourceforge.net> Sender: linux-kernel-owner@vger.kernel.org To: SF Markus Elfring Cc: Alasdair Kergon , Neil Brown , dm-devel@redhat.com, linux-raid@vger.kernel.org, Julia Lawall , kernel-janitors@vger.kernel.org, LKML List-Id: linux-raid.ids On Mon, Feb 02 2015 at 10:23am -0500, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 15:30:37 +0100 > > The dm_table_destroy() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. Your proposed patch (while technically correct) hurts code clarity. Nack.