From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Date: Wed, 19 Nov 2014 16:40:40 +0000 Subject: Re: [PATCH 1/1] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put" Message-Id: <20141119164040.GA4102@pd.tnic> List-Id: References: <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <546CB20D.4070808@users.sourceforge.net> In-Reply-To: <546CB20D.4070808@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: Doug Thompson , Jason Uhlenkott , Mauro Carvalho Chehab , Tim Small , linux-edac@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall On Wed, Nov 19, 2014 at 04:06:53PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Nov 2014 16:00:13 +0100 > > The pci_dev_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, thanks. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --