]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
scsi: lpfc: Remove set but not used variables 'tgtp'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 4 Oct 2018 10:51:02 +0000 (10:51 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Oct 2018 01:58:05 +0000 (21:58 -0400)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_debugfs.c: In function 'lpfc_debugfs_nodelist_data':
drivers/scsi/lpfc/lpfc_debugfs.c:553:29: warning:
 variable 'tgtp' set but not used [-Wunused-but-set-variable]

It never used since 2b65e18202fd ("scsi: lpfc: NVME Target: Add debugfs support")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c

index 9df0c051349f68220cf19a4d6cacd6f236186f34..d6e4cbfe3273431ff65b41b40d661523f3028a5c 100644 (file)
@@ -550,7 +550,6 @@ lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size)
        struct lpfc_nodelist *ndlp;
        unsigned char *statep;
        struct nvme_fc_local_port *localport;
-       struct lpfc_nvmet_tgtport *tgtp;
        struct nvme_fc_remote_port *nrport;
        struct lpfc_nvme_rport *rport;
 
@@ -654,7 +653,6 @@ lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size)
                        "\nOutstanding IO x%x\n",  outio);
 
        if (phba->nvmet_support && phba->targetport && (vport == phba->pport)) {
-               tgtp = (struct lpfc_nvmet_tgtport *)phba->targetport->private;
                len += snprintf(buf + len, size - len,
                                "\nNVME Targetport Entry ...\n");