From patchwork Sat Dec 24 09:38:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Krishnan X-Patchwork-Id: 708645 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tm1wP2BMhz9ssP for ; Sat, 24 Dec 2016 21:39:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EzLojahA"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tm1wP17YkzDwGp for ; Sat, 24 Dec 2016 21:39:33 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EzLojahA"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tm0YZ2H2xzDw7g for ; Sat, 24 Dec 2016 20:38:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EzLojahA"; dkim-atps=neutral Received: by mail-pf0-x243.google.com with SMTP id c4so14943199pfb.3 for ; Sat, 24 Dec 2016 01:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=KtsfnB0YS2JD+/flcv80OO+T1irn3WYt6upmC+IaD6k=; b=EzLojahAubIxtO9SfRVYQ7YPTcodhOlsTItB+3h9gQuXpG/b2BoAB+XohHje5qIF0n EzVsf+rO8MDZWrY24HhdZgshg97PhnHFVZIRkj42ArW5cZ2B0XFRd6Vy92j3MgslihxB 84kTwJ0AAA5EkOCUfO6rqeOOuKs+Sho0jhHCSgOdeXFobAZ6Q2By+xg4Vxmw5NKwD6SG pCnlTiVbJtFXZcSJrLov1tVDLP+9I/gtE5AizJ0//07K5LCcdr0R61Xz1pttPrPag4Br +ojNtteJuds7dOvf4MFiqE3W/JiAU2cv/iafgcd2h6r5Sn+rpWNqCyhyOhd2C1NzHW+2 RiQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=KtsfnB0YS2JD+/flcv80OO+T1irn3WYt6upmC+IaD6k=; b=PZuP4nCoea4TEpSZRwv6FlfxDmnEY/b8UXCvg5COpx52tUfKvbYoxVEJvxTUHKYd4c oXj7nFsiMPxDjHQskaj5KB4BrXuOfemFBXqNVr3xXMUEocZqWuSvPhCDEgBE0zbNhPmY F66m73aysA4DvrsGuHL5UXUwpxxukeRxWSAf2ClO1Sn07iaIDh8ytfCcDqSEUv/LuZsU ohjYvexIB33SbctAFWXICZF1OzWDh6SZcl2YnFWmlzHlshYRQh/psSzY7owYLGq82x4C 7bTaCN54GmEcVEonAN2fObUNpGquH6uzc56T5+vWtKRd2S6U/SSpdE/2Gc9n5iBjUCJK bHtw== X-Gm-Message-State: AIkVDXJA0QEMg4E6VQ6lzcfGYR9tmcFTelLLzoTYUKhOyk4EyS24vyYjRil1CGSiMd22KQ== X-Received: by 10.99.213.21 with SMTP id c21mr32412756pgg.137.1482572287969; Sat, 24 Dec 2016 01:38:07 -0800 (PST) Received: from rahul ([117.195.80.199]) by smtp.gmail.com with ESMTPSA id q190sm27965669pfb.51.2016.12.24.01.38.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Dec 2016 01:38:07 -0800 (PST) Date: Sat, 24 Dec 2016 15:08:00 +0530 From: Rahul Krishnan To: benh@kernel.crashing.org Subject: [PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool Message-ID: <20161224093800.GA24893@rahul> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Mailman-Approved-At: Sat, 24 Dec 2016 21:38:19 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, paulus@samba.org, linux-pci@vger.kernel.org, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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)