Skip to content

Commit

Permalink
ACPI: sysfs: Drop four redundant return statements
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Clayton Casciato authored and Rafael J. Wysocki committed Jun 14, 2021
1 parent 888be60 commit 85c1ad4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/acpi/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,6 @@ static void delete_gpe_attr_array(void)
kfree(counter_attrs);
}
kfree(all_attrs);

return;
}

static void gpe_count(u32 gpe_number)
Expand All @@ -598,8 +596,6 @@ static void gpe_count(u32 gpe_number)
else
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
COUNT_ERROR].count++;

return;
}

static void fixed_event_count(u32 event_number)
Expand All @@ -612,8 +608,6 @@ static void fixed_event_count(u32 event_number)
else
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
COUNT_ERROR].count++;

return;
}

static void acpi_global_event_handler(u32 event_type, acpi_handle device,
Expand Down Expand Up @@ -914,8 +908,6 @@ static void __exit interrupt_stats_exit(void)
sysfs_remove_group(acpi_kobj, &interrupt_stats_attr_group);

delete_gpe_attr_array();

return;
}

static ssize_t
Expand Down

0 comments on commit 85c1ad4

Please sign in to comment.