about summary refs log tree commit homepage
path: root/svc_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'svc_dev.c')
-rw-r--r--svc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc_dev.c b/svc_dev.c
index 497d1bb..47a67da 100644
--- a/svc_dev.c
+++ b/svc_dev.c
@@ -108,7 +108,7 @@ static int svc_scandev(struct mog_svc *svc, size_t *nr, mog_scandev_cb cb)
         struct dirent *ent;
         int rc = 0;
 
-        if (svc->mgmt_fd < 0)
+        if (svc->mgmt_mfd == NULL)
                 return 0;
 
         CHECK(int, 0, pthread_mutex_lock(&svc->devstats_lock));