scsi: qla2xxx: Remove a set-but-not-used variable
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:14 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:49 +0000 (17:24 -0400)
Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_iocb.c

index 5ec975e110c57ba7ce6db3a87e9ea38ce5095e0c..e753ab35c6d2369730d51e3138911b5f75be34c2 100644 (file)
@@ -3004,7 +3004,6 @@ qla2x00_ct_iocb(srb_t *sp, ms_iocb_entry_t *ct_iocb)
        scsi_qla_host_t *vha = sp->vha;
        struct qla_hw_data *ha = vha->hw;
        struct bsg_job *bsg_job = sp->u.bsg_job;
-       int loop_iterartion = 0;
        int entry_count = 1;
 
        memset(ct_iocb, 0, sizeof(ms_iocb_entry_t));
@@ -3062,7 +3061,6 @@ qla2x00_ct_iocb(srb_t *sp, ms_iocb_entry_t *ct_iocb)
                *cur_dsd++   = cpu_to_le32(LSD(sle_dma));
                *cur_dsd++   = cpu_to_le32(MSD(sle_dma));
                *cur_dsd++   = cpu_to_le32(sg_dma_len(sg));
-               loop_iterartion++;
                avail_dsds--;
        }
        ct_iocb->entry_count = entry_count;