diff mbox series

[v2,2/2] ACPI: sysfs: Remove tailing return statement in void function

Message ID 20210618134128.59335-2-andriy.shevchenko@linux.intel.com
State Accepted
Commit df35ee70864111c20ecb36745ffc5f821301d0e7
Headers show
Series None | expand

Commit Message

Andy Shevchenko June 18, 2021, 1:41 p.m. UTC
The tail return statement is redundant in void functions. Remove it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: rebased on top of bleeding-edge (Rafael)

 drivers/acpi/sysfs.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Rafael J. Wysocki June 18, 2021, 4:22 p.m. UTC | #1
On Fri, Jun 18, 2021 at 3:41 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> The tail return statement is redundant in void functions. Remove it.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> v2: rebased on top of bleeding-edge (Rafael)
>
>  drivers/acpi/sysfs.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
> index 18e93c3c39cf..00c0ebaab29f 100644
> --- a/drivers/acpi/sysfs.c
> +++ b/drivers/acpi/sysfs.c
> @@ -897,7 +897,6 @@ void acpi_irq_stats_init(void)
>
>  fail:
>         delete_gpe_attr_array();
> -       return;
>  }
>
>  static void __exit interrupt_stats_exit(void)
> --

Applied as 5.14 material along with the [2/2], thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index 18e93c3c39cf..00c0ebaab29f 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -897,7 +897,6 @@  void acpi_irq_stats_init(void)
 
 fail:
 	delete_gpe_attr_array();
-	return;
 }
 
 static void __exit interrupt_stats_exit(void)