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:
parent
253ac7f709
commit
6644b1a646
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user