mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
ACPI: sysfs: Drop four redundant return statements
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
888be6067b
commit
85c1ad47d2
@ -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)
|
||||
@ -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)
|
||||
@ -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,
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user