library: delete some obsolete parameter checking logic
This commit removes some obsolete parameter validation code which was needed back when certain functions were public, called directly by users (1st/2nd generation). Now that they're static they can be safely eliminated. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -976,9 +976,6 @@ static int vmstat_read_failed (
|
||||
int size;
|
||||
unsigned long *valptr;
|
||||
|
||||
if (info == NULL)
|
||||
return -1;
|
||||
|
||||
// remember history from last time around
|
||||
memcpy(&info->hist.old, &info->hist.new, sizeof(struct vmstat_data));
|
||||
// clear out the soon to be 'current' values
|
||||
@ -1057,11 +1054,6 @@ static struct stacks_extent *vmstat_stacks_alloc (
|
||||
void *v_head, *v_list;
|
||||
int i;
|
||||
|
||||
if (info == NULL || info->items == NULL)
|
||||
return NULL;
|
||||
if (maxstacks < 1)
|
||||
return NULL;
|
||||
|
||||
vect_size = sizeof(void *) * maxstacks; // size of the addr vectors |
|
||||
vect_size += sizeof(void *); // plus NULL addr delimiter |
|
||||
head_size = sizeof(struct vmstat_stack); // size of that head struct |
|
||||
|
Reference in New Issue
Block a user