scsi: qla2xxx: Remove the unused variable wwn
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: Remove the unused variable wwn
Variable wwn is not effectively used, so delete it.
drivers/scsi/qla2xxx/qla_init.c:1657:6: warning: variable 'wwn' set but not used.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/scsi/qla2xxx/qla_init.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/qla2xxx/qla_init.c +0 -2
@@ -1654,7 +1654,6 @@ static void qla_chk_n2n_b4_login(struct scsi_qla_host *vha, fc_port_t *fcport)int qla24xx_fcport_handle_login (struct scsi_qla_host *vha,fc_port_t *fcport) {u16 data[2 ]; -u64 wwn;u16 sec; ql_dbg(ql_dbg_disc, vha, 0x20d8,
@@ -1694,7 +1693,6 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)switch (fcport->disc_state) {case DSC_DELETED : - wwn =wwn_to_u64 (fcport->node_name);switch (vha->hw->current_topology) {case ISP_CFG_N :if (fcport_is_smaller (fcport)) {
Signature · 1 line
2.20.1.7.g153144c
Martin K. Petersen
AppliedJiapeng,
Quoted 1 line
Variable wwn is not effectively used, so delete it.
Applied to 6.3/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 5 lines · Jiapeng Chong
Variable wwn is not effectively used, so delete it.
drivers/scsi/qla2xxx/qla_init.c:1657:6: warning: variable 'wwn' set but not used.
Applied to 6.3/scsi-queue, thanks!
[1/1] scsi: qla2xxx: Remove the unused variable wwn
https://git.kernel.org/mkp/scsi/c/d48a62381a73
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering