/* This routine deallocates and unlinks the specified ddb_entry from the adapter's  */
static void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
/* This routine deallocates and unlinks the specified ddb_entry from the adapter's  */
static void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
{
	list_del_init(&ddb_entry->list);
	ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] =
		(struct ddb_entry *) INVALID_ENTRY;
	ha->tot_ddbs--;
	qla4xxx_destroy_sess(ddb_entry);
}