]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
scsi: lpfc: Remove set but not used variables 'qp'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 31 May 2019 15:27:45 +0000 (23:27 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:24 +0000 (19:46 -0400)
Fixes gcc '-Wunused-but-set-variable' warnings:

drivers/scsi/lpfc/lpfc_init.c: In function lpfc_setup_cq_lookup:
drivers/scsi/lpfc/lpfc_init.c:9359:30: warning: variable qp set but not used [-Wunused-but-set-variable]

It's not used since commit e70596a60f88 ("scsi: lpfc: Fix poor use of
hardware queues if fewer irq vectors")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c

index 1a8abb4b0974c9ddbf69888b2f05f57eb179e9da..3096a444ef01d6c92273cba78c8dfdeacf2deaa8 100644 (file)
@@ -9356,10 +9356,8 @@ static void
 lpfc_setup_cq_lookup(struct lpfc_hba *phba)
 {
        struct lpfc_queue *eq, *childq;
-       struct lpfc_sli4_hdw_queue *qp;
        int qidx;
 
-       qp = phba->sli4_hba.hdwq;
        memset(phba->sli4_hba.cq_lookup, 0,
               (sizeof(struct lpfc_queue *) * (phba->sli4_hba.cq_max + 1)));
        /* Loop thru all IRQ vectors */