scsi: lpfc: Remove set but not used 'qp'
Subsystems (2)
PATCH 1/1 scsi: lpfc: Remove set but not used 'qp'
This addresses the following gcc warning with "make W=1":
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 not used [-Wunused-but-set-variable]
struct lpfc_sli4_hdw_queue *qp;
^Reported-by Hulk Robot <[email protected]>
Signed-off-by Ye Bin <[email protected]>
--- drivers/scsi/lpfc/lpfc_debugfs.c | 3 --- 1 file changed, 3 deletions(-)
drivers/scsi/lpfc/lpfc_debugfs.c +0 -3
@@ -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 ;
Signature · 1 line
2.16.2.dirty