mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user