Author: tfaber
Date: Tue Apr 26 18:29:42 2016
New Revision: 71207
URL:
http://svn.reactos.org/svn/reactos?rev=71207&view=rev
Log:
[ACPI]
- Fix a broken status check in Bus_StartFdo. Spotted by willok.
Modified:
trunk/reactos/drivers/bus/acpi/pnp.c
Modified: trunk/reactos/drivers/bus/acpi/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/pnp.c?rev…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/pnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/pnp.c [iso-8859-1] Tue Apr 26 18:29:42 2016
@@ -268,7 +268,7 @@
PFDO_DEVICE_DATA FdoData,
PIRP Irp )
{
- NTSTATUS status = STATUS_SUCCESS;
+ NTSTATUS status;
POWER_STATE powerState;
ACPI_STATUS AcpiStatus;
@@ -285,11 +285,10 @@
DPRINT1("Unable to AcpiInitializeSubsystem\n");
return STATUS_UNSUCCESSFUL;
}
-
-
- AcpiStatus = AcpiInitializeTables(NULL, 16, 0);
- if (ACPI_FAILURE(status)){
- DPRINT1("Unable to AcpiInitializeSubsystem\n");
+
+ AcpiStatus = AcpiInitializeTables(NULL, 16, 0);
+ if (ACPI_FAILURE(AcpiStatus)){
+ DPRINT1("Unable to AcpiInitializeTables\n");
return STATUS_UNSUCCESSFUL;
}