Commit a82b3539 authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen

scsi: lpfc: Remove set but not used variables 'qp'

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: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a90ef98b
...@@ -9356,10 +9356,8 @@ static void ...@@ -9356,10 +9356,8 @@ static void
lpfc_setup_cq_lookup(struct lpfc_hba *phba) lpfc_setup_cq_lookup(struct lpfc_hba *phba)
{ {
struct lpfc_queue *eq, *childq; struct lpfc_queue *eq, *childq;
struct lpfc_sli4_hdw_queue *qp;
int qidx; int qidx;
qp = phba->sli4_hba.hdwq;
memset(phba->sli4_hba.cq_lookup, 0, memset(phba->sli4_hba.cq_lookup, 0,
(sizeof(struct lpfc_queue *) * (phba->sli4_hba.cq_max + 1))); (sizeof(struct lpfc_queue *) * (phba->sli4_hba.cq_max + 1)));
/* Loop thru all IRQ vectors */ /* Loop thru all IRQ vectors */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment