openbsd: drop unecessary check

This commit is contained in:
Antoine Jacoutot
2014-02-08 11:53:26 +01:00
parent d4d4f7735a
commit 596c42d7f1
7 changed files with 7 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
/* Get the process data */
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
sizeof (*pinfo), &count);
if ((pinfo == NULL) || (count < 1)) {
if (pinfo == NULL) {
glibtop_suid_leave (server);
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
return NULL;