Cleanup: evevent.c
Hi!
This kills some whitespace from evevent.c, making code way shorter. Please apply.
Pavel
Only in linux/drivers/acpi/: common
drivers/acpi/events/evevent.c +8 -38
@@ -48,25 +50,15 @@******************************************************************************/ ACPI_STATUS -acpi_ev_initialize ( -void ) +acpi_ev_initialize (void ) {ACPI_STATUS status; - -/* Make sure we have ACPI tables */ - -if (!acpi_gbl_DSDT) { +if (!acpi_gbl_DSDT)/* Make sure we have ACPI tables */ return (AE_NO_ACPI_TABLES ); - } - - -/* Make sure the BIOS supports ACPI mode */ -if (SYS_MODE_LEGACY ==acpi_hw_get_mode_capabilities ()) { +if (SYS_MODE_LEGACY ==acpi_hw_get_mode_capabilities ())/* Make sure the BIOS supports ACPI mode */ return (AE_ERROR ); - } - acpi_gbl_original_mode =acpi_hw_get_mode ();
@@ -76,38 +68,18 @@* before handers are installed. */ - status =acpi_ev_fixed_event_initialize (); -if (ACPI_FAILURE (status)) { +if (ACPI_FAILURE (status =acpi_ev_fixed_event_initialize ()))return (status); - } - - status =acpi_ev_gpe_initialize (); -if (ACPI_FAILURE (status)) { +if (ACPI_FAILURE (status =acpi_ev_gpe_initialize ()))return (status); - } - -/* Install the SCI handler */ - - status =acpi_ev_install_sci_handler (); -if (ACPI_FAILURE (status)) { +if (ACPI_FAILURE (status =acpi_ev_install_sci_handler ()))return (status); - } - -/* Install handlers for control method GPE handlers (_Lxx, _Exx) */ - - status =acpi_ev_init_gpe_control_methods (); -if (ACPI_FAILURE (status)) { +if (ACPI_FAILURE (status =acpi_ev_init_gpe_control_methods ()))return (status); - } -/* Install the handler for the Global Lock */ - - status =acpi_ev_init_global_lock_handler (); -if (ACPI_FAILURE (status)) { +if (ACPI_FAILURE (status =acpi_ev_init_global_lock_handler ()))return (status); - } -return (status); }
Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents at [email protected]