[ACPI]
[reactos.git] / reactos / drivers / bus / acpi / busmgr / system.c
index 859f4d1..e08280e 100644 (file)
@@ -65,7 +65,6 @@ static int
 acpi_system_add (
        struct acpi_device      *device)
 {
-       int                     result = 0;
        ACPI_STATUS             status = AE_OK;
        struct acpi_system      *system = NULL;
        UINT8                   i = 0;
@@ -114,10 +113,7 @@ acpi_system_add (
 //     }
 //#endif
 
-       if (result)
-               ExFreePoolWithTag(system, 'IPCA');
-
-       return_VALUE(result);
+       return_VALUE(0);
 }
 
 static int
@@ -266,7 +262,7 @@ acpi_system_save_state(
        //}
        /* disable interrupts
         * Note that acpi_suspend -- our caller -- will do this once we return.
-        * But, we want it done early, so we don't get any suprises during
+        * But, we want it done early, so we don't get any surprises during
         * the device suspend sequence.
         */
        //ACPI_DISABLE_IRQS();
@@ -384,7 +380,7 @@ acpi_suspend (
        status = acpi_system_suspend(state);
 
        /* Even if we failed to go to sleep, all of the devices are in an suspended
-        * mode. So, we run these unconditionaly to make sure we have a usable system
+        * mode. So, we run these unconditionally to make sure we have a usable system
         * no matter what.
         */
        AcpiLeaveSleepState(state);
@@ -394,7 +390,7 @@ acpi_suspend (
        _enable();
 
        /* reset firmware waking vector */
-       AcpiSetFirmwareWakingVector((ACPI_PHYSICAL_ADDRESS) 0);
+       AcpiSetFirmwareWakingVector(0, 0);
 
        return status;
 }