/* ibmvscsi_free-event_struct: - Changes status of event to "free" @pool: event_pool that contains the event @evt: srp_event_struct to be modified  */
static void free_event_struct(struct event_pool *pool, struct srp_event_struct *evt)
/* ibmvscsi_free-event_struct: - Changes status of event to "free" @pool: event_pool that contains the event @evt: srp_event_struct to be modified  */
static void free_event_struct(struct event_pool *pool, struct srp_event_struct *evt)
{
	if (!valid_event_struct(pool, evt)) {
		dev_err(evt->hostdata->dev, "Freeing invalid event_struct %p "
			"(not in pool %p)\n", evt, pool->events);
		return;
	}
	if (atomic_inc_return(&evt->free) != 1) {
		dev_err(evt->hostdata->dev, "Freeing event_struct %p "
			"which is not in use!\n", evt);
		return;
	}
}