Skip to content

Commit 659d36c

Browse files
njavalimartinkpetersen
authored andcommitted
scsi: qla2xxx: Remove unused variables in qla24xx_build_scsi_type_6_iocbs()
Sparse warning reported, drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla24xx_build_scsi_type_6_iocbs': >> drivers/scsi/qla2xxx/qla_iocb.c:594:29: warning: variable 'ha' set but not used [-Wunused-but-set-variable] 594 | struct qla_hw_data *ha; | ^~ Remove unused variables 'vha' and 'ha'. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202308230757.VKMIztAB-lkp@intel.com/ Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20230825070017.46066-1-njavali@marvell.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 2717786 commit 659d36c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/scsi/qla2xxx/qla_iocb.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,6 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
591591
uint16_t tot_dsds)
592592
{
593593
struct dsd64 *cur_dsd = NULL, *next_dsd;
594-
scsi_qla_host_t *vha;
595-
struct qla_hw_data *ha;
596594
struct scsi_cmnd *cmd;
597595
struct scatterlist *cur_seg;
598596
uint8_t avail_dsds;
@@ -614,9 +612,6 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
614612
return 0;
615613
}
616614

617-
vha = sp->vha;
618-
ha = vha->hw;
619-
620615
/* Set transfer direction */
621616
if (cmd->sc_data_direction == DMA_TO_DEVICE) {
622617
cmd_pkt->control_flags = cpu_to_le16(CF_WRITE_DATA);

0 commit comments

Comments
 (0)