/* beiscsi_free_ep - free endpoint @ep: pointer to iscsi endpoint structure  */
static void beiscsi_free_ep(struct iscsi_endpoint *ep)
/* beiscsi_free_ep - free endpoint @ep: pointer to iscsi endpoint structure  */
static void beiscsi_free_ep(struct iscsi_endpoint *ep)
{
	struct beiscsi_endpoint *beiscsi_ep = ep->dd_data;
	struct beiscsi_hba *phba = beiscsi_ep->phba;
	beiscsi_put_cid(phba, beiscsi_ep->ep_cid);
	beiscsi_ep->phba = NULL;
	iscsi_destroy_endpoint(ep);
}