/* Returns: 0 if state changed / non-zero if not changed  */
static int ibmvfc_set_host_state(struct ibmvfc_host *vhost, enum ibmvfc_host_state state)
/* Returns: 0 if state changed / non-zero if not changed  */
static int ibmvfc_set_host_state(struct ibmvfc_host *vhost, enum ibmvfc_host_state state)
{
	int rc = 0;
	switch (vhost->state) {
	case IBMVFC_HOST_OFFLINE:
		rc = -EINVAL;
		break;
	default:
		vhost->state = state;
		break;
	};
	return rc;
}