From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966288AbbBCRQ2 (ORCPT ); Tue, 3 Feb 2015 12:16:28 -0500 Received: from mail.skyhub.de ([78.46.96.112]:51664 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966063AbbBCRQZ (ORCPT ); Tue, 3 Feb 2015 12:16:25 -0500 Date: Tue, 3 Feb 2015 18:15:59 +0100 From: Borislav Petkov 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 Subject: Re: [PATCH] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put" Message-ID: <20150203171559.GH3463@pd.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <54CFC12C.9010002@users.sourceforge.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --