mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
qla2x00t-32gbit: Refer directly to the qla2xxx_driver_template
Access the qla2xxx_driver_template data structure directly instead of via the host pointer. This patch prepares for declaring the 'hostt' pointer const. Cc: Nilesh Javali <njavali@marvell.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230322195515.1267197-2-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [ commit a07be936d923 upstream ]
This commit is contained in:
@@ -6463,8 +6463,7 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
if (!(base_vha->host->hostt->supported_mode & MODE_TARGET))
|
||||
base_vha->host->hostt->supported_mode |= MODE_TARGET;
|
||||
qla2xxx_driver_template.supported_mode |= MODE_TARGET;
|
||||
|
||||
rc = btree_init64(&tgt->lun_qpair_map);
|
||||
if (rc) {
|
||||
|
||||
Reference in New Issue
Block a user