|
From: Gleb C. <lna...@ya...> - 2023-04-28 12:23:53
|
Commit: d9bdab5 GitHub URL: https://github.com/SCST-project/scst/commit/d9bdab5ad29608798eb3ac2cf4325a76f8a06d71 Author: Gleb Chesnokov Date: 2023-04-28T15:22:58+03:00 Log Message: ----------- 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 <nj...@ma...> Signed-off-by: Bart Van Assche <bva...@ac...> Link: https://lore.kernel.org/r/202...@ac... Signed-off-by: Martin K. Petersen <mar...@or...> [ commit a07be936d923 upstream ] Modified Paths: -------------- qla2x00t-32gbit/qla_target.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) =================================================================== diff --git a/qla2x00t-32gbit/qla_target.c b/qla2x00t-32gbit/qla_target.c index 859bdd8..9c19ba1 100644 --- a/qla2x00t-32gbit/qla_target.c +++ b/qla2x00t-32gbit/qla_target.c @@ -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) { |