/* Error State. This state will be set when the Vport Creation fails due to errors like Dup WWN. In this state only operation allowed is a Vport Delete.  */
static void bfa_fcs_vport_sm_error(struct bfa_fcs_vport_s *vport, enum bfa_fcs_vport_event event)
/* Error State. This state will be set when the Vport Creation fails due to errors like Dup WWN. In this state only operation allowed is a Vport Delete.  */
static void bfa_fcs_vport_sm_error(struct bfa_fcs_vport_s *vport, enum bfa_fcs_vport_event event)
{
	bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
	bfa_trc(__vport_fcs(vport), event);
	switch (event) {
	case BFA_FCS_VPORT_SM_DELETE:
		bfa_sm_set_state(vport, bfa_fcs_vport_sm_uninit);
		bfa_fcs_vport_free(vport);
		break;
	default:
		bfa_trc(__vport_fcs(vport), event);
	}
}