]> www.infradead.org Git - users/hch/misc.git/commitdiff
scsi: lpfc: Remove unused member variables in struct lpfc_hba and lpfc_vport
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:07:58 +0000 (11:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:19:59 +0000 (22:19 -0400)
There are variables defined in struct lpfc_hba and lpfc_vport that are
not used anywhere.  Delete the unused variables from struct lpfc_hba and
lpfc_vport.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-2-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h

index fe4fb67eb50c9b773d0fc0066b705024513faea4..588411200b0006b061c2b3deeff39636087c7150 100644 (file)
@@ -661,15 +661,12 @@ struct lpfc_vport {
        uint32_t num_disc_nodes;        /* in addition to hba_state */
        uint32_t gidft_inp;             /* cnt of outstanding GID_FTs */
 
-       uint32_t fc_nlp_cnt;    /* outstanding NODELIST requests */
        uint32_t fc_rscn_id_cnt;        /* count of RSCNs payloads in list */
        uint32_t fc_rscn_flush;         /* flag use of fc_rscn_id_list */
        struct lpfc_dmabuf *fc_rscn_id_list[FC_MAX_HOLD_RSCN];
        struct lpfc_name fc_nodename;   /* fc nodename */
        struct lpfc_name fc_portname;   /* fc portname */
 
-       struct lpfc_work_evt disc_timeout_evt;
-
        struct timer_list fc_disctmo;   /* Discovery rescue timer */
        uint8_t fc_ns_retry;    /* retries for fabric nameserver */
        uint32_t fc_prli_sent;  /* cntr for outstanding PRLIs */
@@ -767,7 +764,6 @@ struct lpfc_vport {
        /* There is a single nvme instance per vport. */
        struct nvme_fc_local_port *localport;
        uint8_t  nvmei_support; /* driver supports NVME Initiator */
-       uint32_t last_fcp_wqidx;
        uint32_t rcv_flogi_cnt; /* How many unsol FLOGIs ACK'd. */
 };
 
@@ -1060,8 +1056,6 @@ struct lpfc_hba {
 
        struct lpfc_dmabuf hbqslimp;
 
-       uint16_t pci_cfg_value;
-
        uint8_t fc_linkspeed;   /* Link speed after last READ_LA */
 
        uint32_t fc_eventTag;   /* event tag for link attention */
@@ -1088,7 +1082,6 @@ struct lpfc_hba {
 
        struct lpfc_stats fc_stat;
 
-       struct lpfc_nodelist fc_fcpnodev; /* nodelist entry for no device */
        uint32_t nport_event_cnt;       /* timestamp for nlplist entry */
 
        uint8_t  wwnn[8];
@@ -1229,9 +1222,6 @@ struct lpfc_hba {
        uint32_t hbq_count;             /* Count of configured HBQs */
        struct hbq_s hbqs[LPFC_MAX_HBQS]; /* local copy of hbq indicies  */
 
-       atomic_t fcp_qidx;         /* next FCP WQ (RR Policy) */
-       atomic_t nvme_qidx;        /* next NVME WQ (RR Policy) */
-
        phys_addr_t pci_bar0_map;     /* Physical address for PCI BAR0 */
        phys_addr_t pci_bar1_map;     /* Physical address for PCI BAR1 */
        phys_addr_t pci_bar2_map;     /* Physical address for PCI BAR2 */