mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +00:00
- Fix a broken loop
- Remove unnecessary checks - Fixes CID 171, 172 and 655 svn path=/trunk/; revision=38075
This commit is contained in:
parent
afa4c210b2
commit
a9295e691b
1 changed files with 4 additions and 4 deletions
|
@ -1733,7 +1733,7 @@ SpiCleanupAfterInit(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
|||
|
||||
LunInfo = DeviceExtension->BusesConfig->BusScanInfo[Bus]->LunInfo;
|
||||
|
||||
while (!LunInfo)
|
||||
while (LunInfo)
|
||||
{
|
||||
/* Free current, but save pointer to the next one */
|
||||
Ptr = LunInfo->Next;
|
||||
|
@ -1958,8 +1958,8 @@ ScsiPortNotification(IN SCSI_NOTIFICATION_TYPE NotificationType,
|
|||
Lun);
|
||||
|
||||
/* This request should not be processed if */
|
||||
if ((LunExtension && LunExtension->ReadyLun) ||
|
||||
(LunExtension && LunExtension->SrbInfo.Srb))
|
||||
if ((LunExtension->ReadyLun) ||
|
||||
(LunExtension->SrbInfo.Srb))
|
||||
{
|
||||
/* Nothing to do here */
|
||||
break;
|
||||
|
@ -2900,7 +2900,7 @@ ScsiPortStartIo(IN PDEVICE_OBJECT DeviceObject,
|
|||
// Store the MDL virtual address in SrbInfo structure
|
||||
SrbInfo->DataOffset = MmGetMdlVirtualAddress(Irp->MdlAddress);
|
||||
|
||||
if (DeviceExtension->MapBuffers && Irp->MdlAddress)
|
||||
if (DeviceExtension->MapBuffers)
|
||||
{
|
||||
/* Calculate offset within DataBuffer */
|
||||
SrbInfo->DataOffset = MmGetSystemAddressForMdl(Irp->MdlAddress);
|
||||
|
|
Loading…
Reference in a new issue