From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Fri, 12 Dec 2014 20:31:21 +0000 Subject: Re: [PATCH 1/1] IDE: Deletion of an unnecessary check before the function call "module_put" Message-Id: <20141212.153121.2126874023661472965.davem@davemloft.net> List-Id: References: <5317A59D.4@users.sourceforge.net> <546F91E5.60104@users.sourceforge.net> In-Reply-To: <546F91E5.60104@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: elfring@users.sourceforge.net Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, julia.lawall@lip6.fr From: SF Markus Elfring Date: Fri, 21 Nov 2014 20:26:29 +0100 > From: Markus Elfring > Date: Fri, 21 Nov 2014 20:22:32 +0100 > > The module_put() 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. > > Signed-off-by: Markus Elfring Applied.