]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20703cdc4718b4d277813ee6787c51cec2836d58
tree7ccdf1af1b6dca81ac615a5b728b750c30c8deed
parent7f1a47427ea8046c2d5d9b82294656bdb02022f7
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