From 61ab007c04d540fefee0aadbda3463eb5ff034ed Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 21 Apr 2019 14:58:41 +0000 Subject: [PATCH] qla2x00t-32gbit, target: Inline a single-line function git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8265 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c index a218604ed..fa6f1bc46 100644 --- a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c +++ b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c @@ -764,17 +764,6 @@ static void sqa_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, return; } -static struct se_session *sqa_alloc_sesess(scsi_qla_host_t *vha) -{ - struct se_session *se_sess; - - /* - * For now we simply allocate a single page to hold the session - * structure. This needs to be modified to use the slab cache. - */ - return kzalloc(sizeof(*se_sess), GFP_KERNEL); -} - static int sqa_qla2xxx_check_initiator_node_acl(scsi_qla_host_t *vha, unsigned char *fc_wwpn, struct fc_port *fcport) { @@ -790,7 +779,7 @@ static int sqa_qla2xxx_check_initiator_node_acl(scsi_qla_host_t *vha, PRINT_INFO("sqatgt(%ld/%d): Registering initiator: pwwn=%s", vha->host_no, vha->vp_idx, wwn_to_str(fc_wwpn)); - se_sess = sqa_alloc_sesess(vha); + se_sess = kzalloc(sizeof(*se_sess), GFP_KERNEL); if (!se_sess) return res;