summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/ndis')
-rw-r--r--sys/compat/ndis/kern_ndis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c
index fbb62b1..89cc5e6 100644
--- a/sys/compat/ndis/kern_ndis.c
+++ b/sys/compat/ndis/kern_ndis.c
@@ -150,7 +150,7 @@ ndis_modevent(module_t mod, int cmd, void *arg)
case MOD_SHUTDOWN:
/* stop kthreads */
ndis_destroy_kthreads();
- if (TAILQ_FIRST(&ndis_devhead) != NULL) {
+ if (TAILQ_FIRST(&ndis_devhead) == NULL) {
/* Shut down subsystems */
ndis_libfini();
ntoskrnl_libfini();
OpenPOWER on IntegriCloud