From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759773AbdAKUzz (ORCPT ); Wed, 11 Jan 2017 15:55:55 -0500 Received: from mail.kernel.org ([198.145.29.136]:55430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbdAKUzx (ORCPT ); Wed, 11 Jan 2017 15:55:53 -0500 Date: Wed, 11 Jan 2017 14:55:14 -0600 From: Bjorn Helgaas To: Rahul Krishnan Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool Message-ID: <20170111205514.GI14532@bhelgaas-glaptop.roam.corp.google.com> References: <20161224093800.GA24893@rahul> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161224093800.GA24893@rahul> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 24, 2016 at 03:08:00PM +0530, Rahul Krishnan wrote: > > This patch removes unnecessary return statement using spatch tool > > Signed-off-by: Rahul Krishnan Applied to pci/hotplug for v4.11 with Tyrel's Reviewed-by, thanks! Are there other similar instances elsewhere in drivers/pci? If so, can you fix them all at once? > --- > drivers/pci/hotplug/rpadlpar_core.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c > index dc67f39..78ce2c7 100644 > --- a/drivers/pci/hotplug/rpadlpar_core.c > +++ b/drivers/pci/hotplug/rpadlpar_core.c > @@ -455,7 +455,6 @@ static inline int is_dlpar_capable(void) > > int __init rpadlpar_io_init(void) > { > - int rc = 0; > > if (!is_dlpar_capable()) { > printk(KERN_WARNING "%s: partition not DLPAR capable\n", > @@ -463,8 +462,7 @@ int __init rpadlpar_io_init(void) > return -EPERM; > } > > - rc = dlpar_sysfs_init(); > - return rc; > + return dlpar_sysfs_init(); > } > > void rpadlpar_io_exit(void) > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html