- Fix a broken status check in Bus_StartFdo. Spotted by willok.

svn path=/trunk/; revision=71207
This commit is contained in:
Thomas Faber 2016-04-26 18:29:42 +00:00
parent a91ac10b0f
commit cc84d2386d

View file

@ -268,7 +268,7 @@ Bus_StartFdo (
PFDO_DEVICE_DATA FdoData,
PIRP Irp )
{
NTSTATUS status = STATUS_SUCCESS;
NTSTATUS status;
POWER_STATE powerState;
ACPI_STATUS AcpiStatus;
@ -285,11 +285,10 @@ Bus_StartFdo (
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;
}