qla2x00t-32gbit, target: Remove unnecessary freeing code

The qla2x00t-32gbit target code never assigns a value to se_sess->sess_tag_pool.
Hence there is no need to free the memory that pointer points at.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-03-31 16:25:06 +00:00
parent e24843ced5
commit 7fc7fa3987

View File

@@ -933,13 +933,6 @@ static struct se_session *sqa_alloc_sesess(scsi_qla_host_t *vha)
static void sqa_free_sesess(struct se_session *se_sess)
{
#if QLT_USE_PERCPU_IDA
percpu_ida_destroy(&se_sess->sess_tag_pool);
#elif QLT_USE_SBITMAP
sbitmap_queue_free(&se_sess->sess_tag_pool);
#else
#error Neither percpu_ida nor sbitmap are available.
#endif
kfree(se_sess);
}