aboutsummaryrefslogtreecommitdiff
path: root/lib/libprocstat/libprocstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libprocstat/libprocstat.c')
-rw-r--r--lib/libprocstat/libprocstat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
index 176c2b7f8c6f..89896a813888 100644
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -868,8 +868,6 @@ procstat_getfiles_sysctl(struct procstat *procstat, struct kinfo_proc *kp,
cap_rights_t cap_rights;
assert(kp);
- if (kp->ki_fd == NULL)
- return (NULL);
switch (procstat->type) {
case PROCSTAT_SYSCTL:
files = kinfo_getfile(kp->ki_pid, &cnt);