Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547037 > unrolled thread

[PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool

Started byRahul Krishnan <mrahul.krishnan@gmail.com>
First post2016-12-24 10:40 +0100
Last post2016-12-27 23:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] pci: hotplug: This patch removes unnecessary return  statement using spatch tool Rahul Krishnan <mrahul.krishnan@gmail.com> - 2016-12-24 10:40 +0100
    Re: [PATCH v2] pci: hotplug: This patch removes unnecessary return  statement using spatch tool Tyrel Datwyler <tyreld@linux.vnet.ibm.com> - 2016-12-27 23:40 +0100

#1547037 — [PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool

FromRahul Krishnan <mrahul.krishnan@gmail.com>
Date2016-12-24 10:40 +0100
Subject[PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool
Message-ID<sRQY1-59R-3@gated-at.bofh.it>
This patch removes unnecessary return statement using spatch tool

Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
---
 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

[toc] | [next] | [standalone]


#1547774

FromTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date2016-12-27 23:40 +0100
Message-ID<sT8zw-83k-25@gated-at.bofh.it>
In reply to#1547037
On 12/24/2016 01:38 AM, Rahul Krishnan wrote:
> 
> This patch removes unnecessary return statement using spatch tool
> 
> Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>

Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

> ---
>  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)
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web