Author: ekohl
Date: Mon Jun 5 01:34:02 2006
New Revision: 22225
URL:
http://svn.reactos.ru/svn/reactos?rev=22225&view=rev
Log:
Fix indentation
Modified:
trunk/reactos/drivers/usb/usbstor/usbstor.c
Modified: trunk/reactos/drivers/usb/usbstor/usbstor.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/usb/usbstor/usbstor…
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/usbstor.c (original)
+++ trunk/reactos/drivers/usb/usbstor/usbstor.c Mon Jun 5 01:34:02 2006
@@ -17,19 +17,19 @@
NTSTATUS STDCALL
IrpStub(IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp)
+ IN PIRP Irp)
{
- NTSTATUS Status = STATUS_NOT_SUPPORTED;
- Irp->IoStatus.Status = Status;
- IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return Status;
+ NTSTATUS Status = STATUS_NOT_SUPPORTED;
+ Irp->IoStatus.Status = Status;
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ return Status;
}
NTSTATUS STDCALL
AddDevice(IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT pdo)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
VOID STDCALL
@@ -39,64 +39,64 @@
VOID STDCALL
StartIo(PUSBSTOR_DEVICE_EXTENSION DeviceExtension,
- PIRP Irp)
+ PIRP Irp)
{
}
-
+
static NTSTATUS STDCALL
DispatchClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- Irp->IoStatus.Information = 0;
- Irp->IoStatus.Status = STATUS_SUCCESS;
- IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return STATUS_SUCCESS;
+ Irp->IoStatus.Information = 0;
+ Irp->IoStatus.Status = STATUS_SUCCESS;
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchCleanup(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchScsi(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchReadWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
-return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
-static NTSTATUS STDCALL
+static NTSTATUS STDCALL
DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
{
- DPRINT1("USBSTOR: IRP_MJ_POWER unimplemented\n");
- Irp->IoStatus.Information = 0;
- Irp->IoStatus.Status = STATUS_SUCCESS;
- IoCompleteRequest(Irp, IO_NO_INCREMENT);
- return STATUS_SUCCESS;
+ DPRINT1("USBSTOR: IRP_MJ_POWER unimplemented\n");
+ Irp->IoStatus.Information = 0;
+ Irp->IoStatus.Status = STATUS_SUCCESS;
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ return STATUS_SUCCESS;
}
@@ -107,31 +107,32 @@
NTSTATUS STDCALL
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
{
- ULONG i;
- DPRINT("********* USB Storage *********\n");
+ ULONG i;
- DriverObject->DriverUnload = DriverUnload;
- DriverObject->DriverExtension->AddDevice = AddDevice;
+ DPRINT("********* USB Storage *********\n");
- for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
- DriverObject->MajorFunction[i] = IrpStub;
+ DriverObject->DriverUnload = DriverUnload;
+ DriverObject->DriverExtension->AddDevice = AddDevice;
- DriverObject->DriverStartIo = (PVOID)StartIo;
+ for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
+ DriverObject->MajorFunction[i] = IrpStub;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchClose;
- DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchClose;
- DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCleanup;
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchDeviceControl;
- DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
+ DriverObject->DriverStartIo = (PVOID)StartIo;
-/* Scsi Miniport support */
- DriverObject->MajorFunction[IRP_MJ_SCSI] = DispatchScsi;
- DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = DispatchSystemControl;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchClose;
+ DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchClose;
+ DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCleanup;
+ DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchDeviceControl;
+ DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
+ DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
- DriverObject->MajorFunction[IRP_MJ_PNP] = DispatchPnp;
- DriverObject->MajorFunction[IRP_MJ_POWER] = DispatchPower;
+ /* Scsi Miniport support */
+ DriverObject->MajorFunction[IRP_MJ_SCSI] = DispatchScsi;
+ DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = DispatchSystemControl;
- return STATUS_SUCCESS;
+ DriverObject->MajorFunction[IRP_MJ_PNP] = DispatchPnp;
+ DriverObject->MajorFunction[IRP_MJ_POWER] = DispatchPower;
+
+ return STATUS_SUCCESS;
}