/* Return value: 1 if event is valid / 0 if event is not valid  */
static int ibmvfc_valid_event(struct ibmvfc_event_pool *pool, struct ibmvfc_event *evt)
/* Return value: 1 if event is valid / 0 if event is not valid  */
static int ibmvfc_valid_event(struct ibmvfc_event_pool *pool, struct ibmvfc_event *evt)
{
	int index = evt - pool->events;
	if (index < 0 || index >= pool->size)
		return 0;
	if (evt != pool->events + index)
		return 0;
	return 1;
}