From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755285AbaKSQkq (ORCPT ); Wed, 19 Nov 2014 11:40:46 -0500 Received: from mail.skyhub.de ([78.46.96.112]:53723 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754153AbaKSQko (ORCPT ); Wed, 19 Nov 2014 11:40:44 -0500 Date: Wed, 19 Nov 2014 17:40:40 +0100 From: Borislav Petkov 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 Subject: Re: [PATCH 1/1] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put" Message-ID: <20141119164040.GA4102@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> <546CB20D.4070808@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <546CB20D.4070808@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 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. -- 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. --