From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Date: Tue, 03 Feb 2015 17:15:59 +0000 Subject: Re: [PATCH] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put" Message-Id: <20150203171559.GH3463@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> <54CFC12C.9010002@users.sourceforge.net> In-Reply-To: <54CFC12C.9010002@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: "Arvind R." , Doug Thompson , Mauro Carvalho Chehab , Tim Small , linux-edac@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall On Mon, Feb 02, 2015 at 07:25:48PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 18:26:34 +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 Queued for 3.21, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --