Author: tfaber
Date: Wed Nov 13 12:36:05 2013
New Revision: 60971
URL:
http://svn.reactos.org/svn/reactos?rev=60971&view=rev
Log:
[CLASSPNP]
- Remove unused variables
Modified:
trunk/reactos/drivers/storage/classpnp/class.c
trunk/reactos/drivers/storage/classpnp/classwmi.c
trunk/reactos/drivers/storage/classpnp/create.c
trunk/reactos/drivers/storage/classpnp/obsolete.c
trunk/reactos/drivers/storage/classpnp/power.c
trunk/reactos/drivers/storage/classpnp/xferpkt.c
Modified: trunk/reactos/drivers/storage/classpnp/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/class.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/class.c [iso-8859-1] Wed Nov 13 12:36:05 2013
@@ -539,13 +539,10 @@
PCLASS_DEV_INFO devInfo;
PIO_STACK_LOCATION irpStack = IoGetCurrentIrpStackLocation(Irp);
- PIO_STACK_LOCATION nextIrpStack = IoGetNextIrpStackLocation(Irp);
NTSTATUS status = Irp->IoStatus.Status;
BOOLEAN completeRequest = TRUE;
BOOLEAN lockReleased = FALSE;
-
- ULONG isRemoved;
PAGED_CODE();
@@ -566,7 +563,7 @@
devInfo = &(initData->PdoData);
}
- isRemoved = ClassAcquireRemoveLock(DeviceObject, Irp);
+ ClassAcquireRemoveLock(DeviceObject, Irp);
DebugPrint((2, "ClassDispatchPnp (%p,%p): minor code %#x for %s %p\n",
DeviceObject, Irp,
@@ -894,7 +891,6 @@
case IRP_MN_REMOVE_DEVICE:
case IRP_MN_SURPRISE_REMOVAL: {
- PDEVICE_OBJECT lowerDeviceObject =
commonExtension->LowerDeviceObject;
UCHAR removeType = irpStack->MinorFunction;
if (commonExtension->PagingPathCount != 0) {
@@ -3003,7 +2999,6 @@
)
{
PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = Fdo->DeviceExtension;
- PCOMMON_DEVICE_EXTENSION commonExtension = Fdo->DeviceExtension;
PCLASS_PRIVATE_FDO_DATA fdoData = fdoExtension->PrivateFdoData;
PSENSE_DATA senseBuffer = Srb->SenseInfoBuffer;
@@ -6559,7 +6554,6 @@
PCLASS_DRIVER_EXTENSION
driverExtension = IoGetDriverObjectExtension(Fdo->DriverObject,
CLASS_DRIVER_EXTENSION_KEY);
- NTSTATUS status;
PAGED_CODE();
@@ -6569,7 +6563,7 @@
//
if(InterlockedIncrement((PLONG)&fdoExtension->EnumerationInterlock) == 1) {
- status = driverExtension->InitData.ClassEnumerateDevice(Fdo);
+ driverExtension->InitData.ClassEnumerateDevice(Fdo);
}
Irp->IoStatus.Information = (ULONG_PTR) NULL;
@@ -7330,7 +7324,6 @@
IN ULONG InquiryDataLength
)
{
- PFUNCTIONAL_DEVICE_EXTENSION fdoExtension;
NTSTATUS status;
SCSI_ADDRESS scsiAddress;
OBJECT_ATTRIBUTES objectAttributes;
@@ -7346,7 +7339,6 @@
PAGED_CODE();
ASSERT(DeviceName);
- fdoExtension = Fdo->DeviceExtension;
buffer = NULL;
targetKey = NULL;
RtlZeroMemory(&unicodeName, sizeof(UNICODE_STRING));
Modified: trunk/reactos/drivers/storage/classpnp/classwmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/classwmi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/classwmi.c [iso-8859-1] Wed Nov 13 12:36:05
2013
@@ -562,17 +562,14 @@
IN CCHAR PriorityBoost
)
{
- PCOMMON_DEVICE_EXTENSION commonExtension = DeviceObject->DeviceExtension;
PIO_STACK_LOCATION irpStack = IoGetCurrentIrpStackLocation(Irp);
//UCHAR MinorFunction;
PUCHAR buffer;
ULONG retSize;
UCHAR minorFunction;
- ULONG bufferSize;
minorFunction = irpStack->MinorFunction;
buffer = (PUCHAR)irpStack->Parameters.WMI.Buffer;
- bufferSize = irpStack->Parameters.WMI.BufferSize;
switch(minorFunction)
{
Modified: trunk/reactos/drivers/storage/classpnp/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/create.c [iso-8859-1] Wed Nov 13 12:36:05 2013
@@ -417,8 +417,6 @@
PFUNCTIONAL_DEVICE_EXTENSION fdoExtension =
commonExtension->PartitionZeroExtension;
-
- ULONG newCount = 1;
PAGED_CODE();
Modified: trunk/reactos/drivers/storage/classpnp/obsolete.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/o…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/obsolete.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/obsolete.c [iso-8859-1] Wed Nov 13 12:36:05
2013
@@ -346,7 +346,6 @@
ULONG RetryInterval
)
{
- PCOMMON_DEVICE_EXTENSION commonExtension = DeviceObject->DeviceExtension;
PIO_STACK_LOCATION currentIrpStack = IoGetCurrentIrpStackLocation(Irp);
PIO_STACK_LOCATION nextIrpStack = IoGetNextIrpStackLocation(Irp);
ULONG transferByteCount;
@@ -847,7 +846,6 @@
--*/
{
- PCLASS_PRIVATE_FDO_DATA privateData = FdoExtension->PrivateFdoData;
PCOMMON_DEVICE_EXTENSION commonExt = &FdoExtension->CommonExtension;
//KIRQL oldIrql;
//PIRP blockedIrp;
Modified: trunk/reactos/drivers/storage/classpnp/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/p…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/power.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/power.c [iso-8859-1] Wed Nov 13 12:36:05 2013
@@ -80,15 +80,12 @@
{
PCOMMON_DEVICE_EXTENSION commonExtension = DeviceObject->DeviceExtension;
ULONG isRemoved;
- PCLASS_POWER_DEVICE powerRoutine = NULL;
//
// NOTE: This code may be called at PASSIVE or DISPATCH, depending
// upon the device object it is being called for.
// don't do anything that would break under either circumstance.
//
-
- //NTSTATUS status;
isRemoved = ClassAcquireRemoveLock(DeviceObject, Irp);
@@ -1508,8 +1505,6 @@
PCLASS_POWER_CONTEXT Context
)
{
- PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = DeviceObject->DeviceExtension;
- PCOMMON_DEVICE_EXTENSION commonExtension = DeviceObject->DeviceExtension;
PIO_STACK_LOCATION nextIrpStack = IoGetNextIrpStackLocation(Irp);
PSCSI_REQUEST_BLOCK srb = &(Context->Srb);
LARGE_INTEGER dueTime;
Modified: trunk/reactos/drivers/storage/classpnp/xferpkt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/x…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/xferpkt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/xferpkt.c [iso-8859-1] Wed Nov 13 12:36:05
2013
@@ -720,7 +720,6 @@
PIRP OriginalIrp)
{
PFUNCTIONAL_DEVICE_EXTENSION fdoExt = Pkt->Fdo->DeviceExtension;
- PCLASS_PRIVATE_FDO_DATA fdoData = fdoExt->PrivateFdoData;
PCDB pCdb;
PAGED_CODE();
@@ -766,7 +765,6 @@
PIRP OriginalIrp)
{
PFUNCTIONAL_DEVICE_EXTENSION fdoExt = Pkt->Fdo->DeviceExtension;
- PCLASS_PRIVATE_FDO_DATA fdoData = fdoExt->PrivateFdoData;
PCDB pCdb;
PAGED_CODE();
@@ -815,7 +813,6 @@
PIRP OriginalIrp)
{
PFUNCTIONAL_DEVICE_EXTENSION fdoExt = Pkt->Fdo->DeviceExtension;
- PCLASS_PRIVATE_FDO_DATA fdoData = fdoExt->PrivateFdoData;
PCDB pCdb;
RtlZeroMemory(&Pkt->Srb, sizeof(SCSI_REQUEST_BLOCK));