Author: cgutman
Date: Mon Sep 29 19:04:52 2008
New Revision: 36593
URL:
http://svn.reactos.org/svn/reactos?rev=36593&view=rev
Log:
- Code cleanup
Modified:
branches/aicom-network-fixes/drivers/network/ndis/ndis/miniport.c
Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/ndis/ndis/miniport.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Mon Sep
29 19:04:52 2008
@@ -1636,7 +1636,7 @@
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 @@
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 @@
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 */