From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933866AbbBCMG3 (ORCPT ); Tue, 3 Feb 2015 07:06:29 -0500 Received: from mail-qa0-f42.google.com ([209.85.216.42]:62582 "EHLO mail-qa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932250AbbBCMG0 (ORCPT ); Tue, 3 Feb 2015 07:06:26 -0500 Date: Tue, 3 Feb 2015 07:06:23 -0500 From: Tejun Heo To: SF Markus Elfring Cc: Bartlomiej Zolnierkiewicz , linux-ide@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall Subject: Re: [PATCH] ata: Delete unnecessary checks before the function call "pci_dev_put" Message-ID: <20150203120623.GA19463@htj.dyndns.org> 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> <54CFEA98.6040301@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CFEA98.6040301@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 10:22:32PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 22:08:29 +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 to libata/for-3.20. Thanks. -- tejun