Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755052AbcL0Wd0 (ORCPT ); Tue, 27 Dec 2016 17:33:26 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58739 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbcL0WdU (ORCPT ); Tue, 27 Dec 2016 17:33:20 -0500 Subject: Re: [PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool To: Rahul Krishnan , benh@kernel.crashing.org References: <20161224093800.GA24893@rahul> Cc: linux-kernel@vger.kernel.org, paulus@samba.org, linux-pci@vger.kernel.org, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org From: Tyrel Datwyler Date: Tue, 27 Dec 2016 14:33:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161224093800.GA24893@rahul> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16122722-0012-0000-0000-000012D34370 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006328; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000198; SDB=6.00799943; UDB=6.00388678; IPR=6.00577755; BA=6.00005011; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013736; XFM=3.00000011; UTC=2016-12-27 22:33:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16122722-0013-0000-0000-000049ABD0A5 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-27_19:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1612270354 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 976 Lines: 35 On 12/24/2016 01:38 AM, Rahul Krishnan wrote: > > This patch removes unnecessary return statement using spatch tool > > Signed-off-by: Rahul Krishnan Reviewed-by: Tyrel Datwyler > --- > 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) >