- Remove some dead code in acpi_system_add. CID 502179
- Define deviceName only in debug builds in Bus_AddDevice. CID 502180
svn path=/trunk/; revision=74696
acpi_system_add (
struct acpi_device *device)
{
- int result = 0;
ACPI_STATUS status = AE_OK;
struct acpi_system *system = NULL;
UINT8 i = 0;
// }
//#endif
- if (result)
- ExFreePoolWithTag(system, 'IPCA');
-
- return_VALUE(result);
+ return_VALUE(0);
}
static int
NTSTATUS status;
PDEVICE_OBJECT deviceObject = NULL;
PFDO_DEVICE_DATA deviceData = NULL;
- PWCHAR deviceName = NULL;
#ifndef NDEBUG
+ PWCHAR deviceName = NULL;
ULONG nameLength;
#endif
deviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
End:
+#ifndef NDEBUG
if (deviceName){
ExFreePoolWithTag(deviceName, 'MpcA');
}
+#endif
if (!NT_SUCCESS(status) && deviceObject){
if (deviceData && deviceData->NextLowerDriver){
IoDetachDevice (deviceData->NextLowerDriver);