scsi: lpfc: Remove set but not used 'qp'
authorYe Bin <yebin10@huawei.com>
Wed, 9 Sep 2020 08:27:16 +0000 (16:27 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Sep 2020 02:42:39 +0000 (22:42 -0400)
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

drivers/scsi/lpfc/lpfc_debugfs.c

index d6c07ee..c9a327b 100644 (file)
@@ -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;