mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
scsi: lpfc: Remove set but not used 'qp'
This addresses the following gcc warning with "make W=1":
not used [-Wunused-but-set-variable]
struct lpfc_sli4_hdw_queue *qp;
^
Link: https://lore.kernel.org/r/20200909082716.37787-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c: In function ‘lpfc_debugfs_hdwqstat_data’:
drivers/scsi/lpfc/lpfc_debugfs.c:1699:30: warning: variable ‘qp’ set but
This commit is contained in:
parent
8b02fc756a
commit
2de7649cff
|
|
@ -1696,7 +1696,6 @@ static int
|
|||
lpfc_debugfs_hdwqstat_data(struct lpfc_vport *vport, char *buf, int size)
|
||||
{
|
||||
struct lpfc_hba *phba = vport->phba;
|
||||
struct lpfc_sli4_hdw_queue *qp;
|
||||
struct lpfc_hdwq_stat *c_stat;
|
||||
int i, j, len;
|
||||
uint32_t tot_xmt;
|
||||
|
|
@ -1726,8 +1725,6 @@ lpfc_debugfs_hdwqstat_data(struct lpfc_vport *vport, char *buf, int size)
|
|||
goto buffer_done;
|
||||
|
||||
for (i = 0; i < phba->cfg_hdw_queue; i++) {
|
||||
qp = &phba->sli4_hba.hdwq[i];
|
||||
|
||||
tot_rcv = 0;
|
||||
tot_xmt = 0;
|
||||
tot_cmpl = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user