mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
[SCSIPORT]: Code formatting only.
svn path=/trunk/; revision=74596
This commit is contained in:
parent
87d9dfae0d
commit
2e3ea31302
1 changed files with 24 additions and 29 deletions
|
@ -98,7 +98,7 @@ SpiAllocateSrbStructures(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||||
|
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
SpiSendInquiry(IN PDEVICE_OBJECT DeviceObject,
|
SpiSendInquiry(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PSCSI_LUN_INFO LunInfo);
|
IN OUT PSCSI_LUN_INFO LunInfo);
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
SpiScanAdapter (IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension);
|
SpiScanAdapter (IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension);
|
||||||
|
@ -136,8 +136,8 @@ ScsiPortAllocateAdapterChannel(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PVOID Context);
|
IN PVOID Context);
|
||||||
|
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
SpiBuildDeviceMap (PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
SpiBuildDeviceMap(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||||
PUNICODE_STRING RegistryPath);
|
IN PUNICODE_STRING RegistryPath);
|
||||||
|
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
SpiStatusSrbToNt(UCHAR SrbStatus);
|
SpiStatusSrbToNt(UCHAR SrbStatus);
|
||||||
|
@ -3327,8 +3327,7 @@ SpiAllocateLunExtension (IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
||||||
PSCSI_PORT_LUN_EXTENSION LunExtension;
|
PSCSI_PORT_LUN_EXTENSION LunExtension;
|
||||||
ULONG LunExtensionSize;
|
ULONG LunExtensionSize;
|
||||||
|
|
||||||
DPRINT("SpiAllocateLunExtension (%p)\n",
|
DPRINT("SpiAllocateLunExtension(%p)\n", DeviceExtension);
|
||||||
DeviceExtension);
|
|
||||||
|
|
||||||
/* Round LunExtensionSize first to the sizeof LONGLONG */
|
/* Round LunExtensionSize first to the sizeof LONGLONG */
|
||||||
LunExtensionSize = (DeviceExtension->LunExtensionSize +
|
LunExtensionSize = (DeviceExtension->LunExtensionSize +
|
||||||
|
@ -3548,7 +3547,7 @@ SpiAllocateSrbStructures(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||||
|
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
SpiSendInquiry(IN PDEVICE_OBJECT DeviceObject,
|
SpiSendInquiry(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PSCSI_LUN_INFO LunInfo)
|
IN OUT PSCSI_LUN_INFO LunInfo)
|
||||||
{
|
{
|
||||||
IO_STATUS_BLOCK IoStatusBlock;
|
IO_STATUS_BLOCK IoStatusBlock;
|
||||||
PIO_STACK_LOCATION IrpStack;
|
PIO_STACK_LOCATION IrpStack;
|
||||||
|
@ -3801,7 +3800,6 @@ SpiScanAdapter(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
||||||
{
|
{
|
||||||
/* We need to allocate this buffer */
|
/* We need to allocate this buffer */
|
||||||
BusScanInfo = ExAllocatePoolWithTag(NonPagedPool, sizeof(SCSI_BUS_SCAN_INFO), TAG_SCSIPORT);
|
BusScanInfo = ExAllocatePoolWithTag(NonPagedPool, sizeof(SCSI_BUS_SCAN_INFO), TAG_SCSIPORT);
|
||||||
|
|
||||||
if (!BusScanInfo)
|
if (!BusScanInfo)
|
||||||
{
|
{
|
||||||
DPRINT1("Out of resources!\n");
|
DPRINT1("Out of resources!\n");
|
||||||
|
@ -3823,8 +3821,7 @@ SpiScanAdapter(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
||||||
|
|
||||||
/* Create LUN information structure */
|
/* Create LUN information structure */
|
||||||
LunInfo = ExAllocatePoolWithTag(PagedPool, sizeof(SCSI_LUN_INFO), TAG_SCSIPORT);
|
LunInfo = ExAllocatePoolWithTag(PagedPool, sizeof(SCSI_LUN_INFO), TAG_SCSIPORT);
|
||||||
|
if (!LunInfo)
|
||||||
if (LunInfo == NULL)
|
|
||||||
{
|
{
|
||||||
DPRINT1("Out of resources!\n");
|
DPRINT1("Out of resources!\n");
|
||||||
return;
|
return;
|
||||||
|
@ -3929,7 +3926,6 @@ SpiScanAdapter(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
||||||
|
|
||||||
/* Allocate another buffer */
|
/* Allocate another buffer */
|
||||||
LunInfo = ExAllocatePoolWithTag(PagedPool, sizeof(SCSI_LUN_INFO), TAG_SCSIPORT);
|
LunInfo = ExAllocatePoolWithTag(PagedPool, sizeof(SCSI_LUN_INFO), TAG_SCSIPORT);
|
||||||
|
|
||||||
if (!LunInfo)
|
if (!LunInfo)
|
||||||
{
|
{
|
||||||
DPRINT1("Out of resources!\n");
|
DPRINT1("Out of resources!\n");
|
||||||
|
@ -4008,8 +4004,7 @@ SpiGetInquiryData(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||||
sizeof(ULONG) - 1) & ~(sizeof(ULONG) - 1));
|
sizeof(ULONG) - 1) & ~(sizeof(ULONG) - 1));
|
||||||
|
|
||||||
/* Calculate data size */
|
/* Calculate data size */
|
||||||
Length = sizeof(SCSI_ADAPTER_BUS_INFO) + (BusCount - 1) *
|
Length = sizeof(SCSI_ADAPTER_BUS_INFO) + (BusCount - 1) * sizeof(SCSI_BUS_DATA);
|
||||||
sizeof(SCSI_BUS_DATA);
|
|
||||||
|
|
||||||
Length += InquiryDataSize * LunCount;
|
Length += InquiryDataSize * LunCount;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue