mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 09:09:19 +00:00
- Code cleanup
svn path=/branches/aicom-network-fixes/; revision=36593
This commit is contained in:
parent
9536865b31
commit
48af47e451
|
@ -1636,7 +1636,7 @@ NdisIPnPStartDevice(
|
|||
NDIS_DbgPrint(MIN_TRACE, ("MiniportInitialize() failed for an adapter.\n"));
|
||||
ExInterlockedRemoveEntryList( &Adapter->ListEntry, &AdapterListLock );
|
||||
if (NdisStatus == NDIS_STATUS_SUCCESS) NdisStatus = NDIS_STATUS_FAILURE;
|
||||
return (NTSTATUS)NdisStatus;
|
||||
return NdisStatus;
|
||||
}
|
||||
|
||||
Adapter->NdisMiniportBlock.MediaType = MediaArray[SelectedMediumIndex];
|
||||
|
@ -1669,7 +1669,7 @@ NdisIPnPStartDevice(
|
|||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
if (!Success || NdisStatus != NDIS_STATUS_SUCCESS)
|
||||
if (NdisStatus != NDIS_STATUS_SUCCESS)
|
||||
{
|
||||
NDIS_DbgPrint(MAX_TRACE, ("couldn't create filter (%x)\n", NdisStatus));
|
||||
if (Adapter->LookaheadBuffer)
|
||||
|
@ -1678,8 +1678,7 @@ NdisIPnPStartDevice(
|
|||
Adapter->LookaheadBuffer = NULL;
|
||||
}
|
||||
ExInterlockedRemoveEntryList( &Adapter->ListEntry, &AdapterListLock );
|
||||
if (NdisStatus == NDIS_STATUS_SUCCESS) NdisStatus = NDIS_STATUS_FAILURE;
|
||||
return (NTSTATUS)NdisStatus;
|
||||
return NdisStatus;
|
||||
}
|
||||
|
||||
/* Check for a hang every two seconds if it wasn't set in MiniportInitialize */
|
||||
|
|
Loading…
Reference in a new issue