- Shut up warnings
- Fix whitespace issues

svn path=/trunk/; revision=56469
This commit is contained in:
Thomas Faber 2012-05-01 16:53:02 +00:00
parent ae1974497f
commit 4c2fd89c46
5 changed files with 484 additions and 484 deletions

View file

@ -22,12 +22,12 @@
// Dispatch routine for CreateHandle // Dispatch routine for CreateHandle
NTSTATUS FreeBT_DispatchCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NTSTATUS FreeBT_DispatchCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{ {
ULONG i; //ULONG i;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PFILE_OBJECT fileObject; PFILE_OBJECT fileObject;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PFREEBT_PIPE_CONTEXT pipeContext; //PFREEBT_PIPE_CONTEXT pipeContext;
PUSBD_INTERFACE_INFORMATION interface; PUSBD_INTERFACE_INFORMATION interface;
PAGED_CODE(); PAGED_CODE();
@ -105,15 +105,15 @@ NTSTATUS FreeBT_DispatchClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
PFILE_OBJECT fileObject; PFILE_OBJECT fileObject;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PFREEBT_PIPE_CONTEXT pipeContext; //PFREEBT_PIPE_CONTEXT pipeContext;
PUSBD_PIPE_INFORMATION pipeInformation; //PUSBD_PIPE_INFORMATION pipeInformation;
PAGED_CODE(); PAGED_CODE();
irpStack = IoGetCurrentIrpStackLocation(Irp); irpStack = IoGetCurrentIrpStackLocation(Irp);
fileObject = irpStack->FileObject; fileObject = irpStack->FileObject;
pipeContext = NULL; //pipeContext = NULL;
pipeInformation = NULL; //pipeInformation = NULL;
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension; deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
FreeBT_DbgPrint(3, ("FreeBT_DispatchClose: Entered\n")); FreeBT_DbgPrint(3, ("FreeBT_DispatchClose: Entered\n"));
@ -134,7 +134,7 @@ NTSTATUS FreeBT_DispatchClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
// Called when a HCI Send on the control pipe completes // Called when a HCI Send on the control pipe completes
NTSTATUS FreeBT_HCISendCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context) NTSTATUS FreeBT_HCISendCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
{ {
ULONG stageLength; //ULONG stageLength;
NTSTATUS ntStatus; NTSTATUS ntStatus;
FreeBT_DbgPrint(3, ("FBTUSB: FreeBT_HCISendCompletion, status=0x%08X\n", Irp->IoStatus.Status)); FreeBT_DbgPrint(3, ("FBTUSB: FreeBT_HCISendCompletion, status=0x%08X\n", Irp->IoStatus.Status));
@ -156,9 +156,9 @@ NTSTATUS FreeBT_HCISendCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, I
NTSTATUS FreeBT_SendHCICommand(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID IoBuffer, IN ULONG InputBufferLength) NTSTATUS FreeBT_SendHCICommand(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID IoBuffer, IN ULONG InputBufferLength)
{ {
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
ULONG urbFlags; //ULONG urbFlags;
ULONG stageLength; //ULONG stageLength;
PVOID pBuffer; //PVOID pBuffer;
PURB urb; PURB urb;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PIO_STACK_LOCATION nextStack; PIO_STACK_LOCATION nextStack;
@ -283,7 +283,7 @@ NTSTATUS FreeBT_SendHCICommand(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN P
// Called when a HCI Get on the event pipe completes // Called when a HCI Get on the event pipe completes
NTSTATUS FreeBT_HCIEventCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context) NTSTATUS FreeBT_HCIEventCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
{ {
ULONG stageLength; //ULONG stageLength;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PIO_STACK_LOCATION nextStack; PIO_STACK_LOCATION nextStack;
PURB urb; PURB urb;

View file

@ -25,7 +25,7 @@ NTSTATUS FreeBT_DispatchPnP(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{ {
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
KEVENT startDeviceEvent; //KEVENT startDeviceEvent;
NTSTATUS ntStatus; NTSTATUS ntStatus;
irpStack = IoGetCurrentIrpStackLocation(Irp); irpStack = IoGetCurrentIrpStackLocation(Irp);
@ -448,7 +448,7 @@ NTSTATUS SelectInterfaces(IN PDEVICE_OBJECT DeviceObject, IN PUSB_CONFIGURATION_
LONG numberOfInterfaces, interfaceNumber, interfaceindex; LONG numberOfInterfaces, interfaceNumber, interfaceindex;
ULONG i; ULONG i;
PURB urb; PURB urb;
PUCHAR pInf; //PUCHAR pInf;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
PUSB_INTERFACE_DESCRIPTOR interfaceDescriptor; PUSB_INTERFACE_DESCRIPTOR interfaceDescriptor;
@ -1112,7 +1112,7 @@ NTSTATUS HandleSurpriseRemoval(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
NTSTATUS HandleRemoveDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NTSTATUS HandleRemoveDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{ {
KIRQL oldIrql; KIRQL oldIrql;
KEVENT event; //KEVENT event;
ULONG requestCount; ULONG requestCount;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
@ -1351,7 +1351,7 @@ VOID DpcRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1
VOID IdleRequestWorkerRoutine(IN PDEVICE_OBJECT DeviceObject, IN PVOID Context) VOID IdleRequestWorkerRoutine(IN PDEVICE_OBJECT DeviceObject, IN PVOID Context)
{ {
PIRP irp; //PIRP irp;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
PIO_WORKITEM workItem; PIO_WORKITEM workItem;
@ -1479,7 +1479,7 @@ Return Value:
else else
{ {
PIO_STACK_LOCATION irpStack; //PIO_STACK_LOCATION irpStack;
FreeBT_DbgPrint(3, ("FBTUSB: ProcessQueuedRequests::")); FreeBT_DbgPrint(3, ("FBTUSB: ProcessQueuedRequests::"));
FreeBT_IoIncrement(DeviceExtension); FreeBT_IoIncrement(DeviceExtension);
@ -1573,7 +1573,7 @@ NTSTATUS FreeBT_DispatchClean(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
PIRP pendingIrp; PIRP pendingIrp;
PIO_STACK_LOCATION pendingIrpStack, PIO_STACK_LOCATION pendingIrpStack,
irpStack; irpStack;
NTSTATUS ntStatus; //NTSTATUS ntStatus;
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension; deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
irpStack = IoGetCurrentIrpStackLocation(Irp); irpStack = IoGetCurrentIrpStackLocation(Irp);
@ -1655,7 +1655,7 @@ NTSTATUS FreeBT_AbortPipes(IN PDEVICE_OBJECT DeviceObject)
NTSTATUS ntStatus; NTSTATUS ntStatus;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
PFREEBT_PIPE_CONTEXT pipeContext; PFREEBT_PIPE_CONTEXT pipeContext;
PUSBD_PIPE_INFORMATION pipeInformation; //PUSBD_PIPE_INFORMATION pipeInformation;
PUSBD_INTERFACE_INFORMATION interfaceInfo; PUSBD_INTERFACE_INFORMATION interfaceInfo;
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension; deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;

View file

@ -22,9 +22,9 @@
// Handle power events // Handle power events
NTSTATUS FreeBT_DispatchPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NTSTATUS FreeBT_DispatchPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{ {
NTSTATUS ntStatus; NTSTATUS ntStatus = STATUS_SUCCESS;
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PUNICODE_STRING tagString; //PUNICODE_STRING tagString;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
irpStack = IoGetCurrentIrpStackLocation(Irp); irpStack = IoGetCurrentIrpStackLocation(Irp);

View file

@ -33,7 +33,7 @@ NTSTATUS FreeBT_DispatchRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PIO_STACK_LOCATION nextStack; PIO_STACK_LOCATION nextStack;
PFREEBT_RW_CONTEXT rwContext; PFREEBT_RW_CONTEXT rwContext;
ULONG maxLength=0; //ULONG maxLength=0;
urb = NULL; urb = NULL;
mdl = NULL; mdl = NULL;
@ -206,9 +206,9 @@ FreeBT_DispatchRead_Exit:
NTSTATUS FreeBT_ReadCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context) NTSTATUS FreeBT_ReadCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
{ {
ULONG stageLength; //ULONG stageLength;
NTSTATUS ntStatus; NTSTATUS ntStatus;
PIO_STACK_LOCATION nextStack; //PIO_STACK_LOCATION nextStack;
PFREEBT_RW_CONTEXT rwContext; PFREEBT_RW_CONTEXT rwContext;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
@ -263,7 +263,7 @@ NTSTATUS FreeBT_DispatchWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
PIO_STACK_LOCATION irpStack; PIO_STACK_LOCATION irpStack;
PIO_STACK_LOCATION nextStack; PIO_STACK_LOCATION nextStack;
PFREEBT_RW_CONTEXT rwContext; PFREEBT_RW_CONTEXT rwContext;
ULONG maxLength=0; //ULONG maxLength=0;
urb = NULL; urb = NULL;
mdl = NULL; mdl = NULL;

View file

@ -111,7 +111,7 @@ NTSTATUS NTAPI FreeBT_AddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJEC
PDEVICE_OBJECT deviceObject; PDEVICE_OBJECT deviceObject;
PDEVICE_EXTENSION deviceExtension; PDEVICE_EXTENSION deviceExtension;
POWER_STATE state; POWER_STATE state;
KIRQL oldIrql; //KIRQL oldIrql;
UNICODE_STRING uniDeviceName; UNICODE_STRING uniDeviceName;
WCHAR wszDeviceName[255]={0}; WCHAR wszDeviceName[255]={0};
UNICODE_STRING uniDosDeviceName; UNICODE_STRING uniDosDeviceName;