mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user