library: eliminate a redundant conditional, <PIDS> api

library: eliminate a single redundant conditional test

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2017-05-12 00:00:00 -05:00 committed by Craig Small
parent 253ac7f709
commit 6644b1a646

View File

@ -1267,8 +1267,6 @@ PROCPS_EXPORT struct pids_stack *procps_pids_get (
if (info == NULL)
return NULL;
if (!info->curitems)
return NULL;
if (which != PIDS_FETCH_TASKS_ONLY && which != PIDS_FETCH_THREADS_TOO)
return NULL;
/* with items & numitems technically optional at 'new' time, it's