From 3818a027106e900af3cd9371e69d16a84614275a Mon Sep 17 00:00:00 2001 From: njl Date: Tue, 20 Apr 2004 17:13:08 +0000 Subject: [PATCH] Style fixes. --- sys/dev/acpica/Osd/OsdTable.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/sys/dev/acpica/Osd/OsdTable.c b/sys/dev/acpica/Osd/OsdTable.c index 0b94ad3bc5db..298c9654a3df 100644 --- a/sys/dev/acpica/Osd/OsdTable.c +++ b/sys/dev/acpica/Osd/OsdTable.c @@ -66,30 +66,17 @@ AcpiOsTableOverride ( caddr_t acpi_dsdt, p; if (ExistingTable == NULL || NewTable == NULL) - { return(AE_BAD_PARAMETER); - } - - (*NewTable) = NULL; + *NewTable = NULL; if (strncmp(ExistingTable->Signature, "DSDT", 4) != 0) - { return(AE_OK); - } - if ((acpi_dsdt = preload_search_by_type("acpi_dsdt")) == NULL) - { return(AE_OK); - } - if ((p = preload_search_info(acpi_dsdt, MODINFO_ADDR)) == NULL) - { return(AE_OK); - } - - (*NewTable) = *(void **)p; + *NewTable = *(void **)p; printf("ACPI: DSDT was overridden.\n"); - - return(AE_OK); + return (AE_OK); }