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(counter_attrs);
|
||||||
}
|
}
|
||||||
kfree(all_attrs);
|
kfree(all_attrs);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gpe_count(u32 gpe_number)
|
static void gpe_count(u32 gpe_number)
|
||||||
@ -598,8 +596,6 @@ static void gpe_count(u32 gpe_number)
|
|||||||
else
|
else
|
||||||
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
|
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
|
||||||
COUNT_ERROR].count++;
|
COUNT_ERROR].count++;
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fixed_event_count(u32 event_number)
|
static void fixed_event_count(u32 event_number)
|
||||||
@ -612,8 +608,6 @@ static void fixed_event_count(u32 event_number)
|
|||||||
else
|
else
|
||||||
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
|
all_counters[num_gpes + ACPI_NUM_FIXED_EVENTS +
|
||||||
COUNT_ERROR].count++;
|
COUNT_ERROR].count++;
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void acpi_global_event_handler(u32 event_type, acpi_handle device,
|
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);
|
sysfs_remove_group(acpi_kobj, &interrupt_stats_attr_group);
|
||||||
|
|
||||||
delete_gpe_attr_array();
|
delete_gpe_attr_array();
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t
|
static ssize_t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user