https://git.reactos.org/?p=reactos.git;a=commitdiff;h=24b2d59ab6a3795122159…
commit 24b2d59ab6a379512215930ed1f27c25175a6483
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Feb 16 10:01:50 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Feb 16 10:02:29 2019 +0100
[E1000] Remove useless null check
CID 512827
---
drivers/network/dd/e1000/ndis.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/network/dd/e1000/ndis.c b/drivers/network/dd/e1000/ndis.c
index 2e713dfcb6..d6074cb5a2 100644
--- a/drivers/network/dd/e1000/ndis.c
+++ b/drivers/network/dd/e1000/ndis.c
@@ -286,10 +286,8 @@ Cleanup:
{
NdisFreeMemory(ResourceList, ResourceListSize, 0);
}
- if (Adapter != NULL)
- {
- MiniportHalt(Adapter);
- }
+
+ MiniportHalt(Adapter);
return Status;
}