OSDN Git Service

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)
commit2de7649cff445ec35a6c5ee1a8e19be186d890fc
tree7ccdf1af1b6dca81ac615a5b728b750c30c8deed
parent8b02fc756af69d6edbcc34b63ae4cec4503dfaa0
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
drivers/scsi/lpfc/lpfc_debugfs.c