mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
ACPI: PAD: Rearrange acpi_pad_notify()
Use an if () in acpi_pad_notify() instead of a switch () statement to make the code somewhat easier to follow and reduce its indentation level. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/3345485.5fSG56mABF@rafael.j.wysocki
This commit is contained in:
parent
d3f13e75bf
commit
dd32e1966f
|
|
@ -409,16 +409,13 @@ static void acpi_pad_notify(acpi_handle handle, u32 event, void *data)
|
|||
{
|
||||
struct acpi_device *adev = data;
|
||||
|
||||
switch (event) {
|
||||
case ACPI_PROCESSOR_AGGREGATOR_NOTIFY:
|
||||
acpi_pad_handle_notify(handle);
|
||||
acpi_bus_generate_netlink_event("acpi_pad",
|
||||
dev_name(&adev->dev), event, 0);
|
||||
break;
|
||||
default:
|
||||
if (event != ACPI_PROCESSOR_AGGREGATOR_NOTIFY) {
|
||||
pr_warn("Unsupported event [0x%x]\n", event);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
acpi_pad_handle_notify(handle);
|
||||
acpi_bus_generate_netlink_event("acpi_pad", dev_name(&adev->dev), event, 0);
|
||||
}
|
||||
|
||||
static int acpi_pad_probe(struct platform_device *pdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user