diff options
-rw-r--r-- | lib/libzfs_core/libzfs_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libzfs_core/libzfs_core.c b/lib/libzfs_core/libzfs_core.c index 1e6bbcd56..7a71b7a54 100644 --- a/lib/libzfs_core/libzfs_core.c +++ b/lib/libzfs_core/libzfs_core.c @@ -158,8 +158,7 @@ libzfs_core_fini(void) (void) pthread_mutex_lock(&g_lock); ASSERT3S(g_refcount, >, 0); - if (g_refcount > 0) - g_refcount--; + g_refcount--; if (g_refcount == 0 && g_fd != -1) { (void) close(g_fd); |