[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150206211234.GA14803@redhat.com>
Date: Fri, 6 Feb 2015 16:12:34 -0500
From: Mike Snitzer <snitzer@...hat.com>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>
Cc: Alasdair Kergon <agk@...hat.com>, Neil Brown <neilb@...e.de>,
dm-devel@...hat.com, linux-raid@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>,
kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] dm ioctl: Delete an unnecessary check before the
function call "dm_table_destroy"
On Mon, Feb 02 2015 at 10:23am -0500,
SF Markus Elfring <elfring@...rs.sourceforge.net> wrote:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists