/* Routines for managing client lists - These routines are for managing the list of auth'ed clients.  */
static struct agp_client* agp_find_client_in_controller(struct agp_controller *controller, pid_t id)
/* Routines for managing client lists - These routines are for managing the list of auth'ed clients.  */
static struct agp_client* agp_find_client_in_controller(struct agp_controller *controller, pid_t id)
{
	struct agp_client *client;
	if (controller == NULL)
		return NULL;
	client = controller->clients;
	while (client != NULL) {
		if (client->pid == id)
			return client;
		client = client->next;
	}
	return NULL;
}