Skip to content

Commit 12ff7c5

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Remove unused member variables in struct lpfc_hba and lpfc_vport
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>
1 parent 8f5ae30 commit 12ff7c5

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/scsi/lpfc/lpfc.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -661,15 +661,12 @@ struct lpfc_vport {
661661
uint32_t num_disc_nodes; /* in addition to hba_state */
662662
uint32_t gidft_inp; /* cnt of outstanding GID_FTs */
663663

664-
uint32_t fc_nlp_cnt; /* outstanding NODELIST requests */
665664
uint32_t fc_rscn_id_cnt; /* count of RSCNs payloads in list */
666665
uint32_t fc_rscn_flush; /* flag use of fc_rscn_id_list */
667666
struct lpfc_dmabuf *fc_rscn_id_list[FC_MAX_HOLD_RSCN];
668667
struct lpfc_name fc_nodename; /* fc nodename */
669668
struct lpfc_name fc_portname; /* fc portname */
670669

671-
struct lpfc_work_evt disc_timeout_evt;
672-
673670
struct timer_list fc_disctmo; /* Discovery rescue timer */
674671
uint8_t fc_ns_retry; /* retries for fabric nameserver */
675672
uint32_t fc_prli_sent; /* cntr for outstanding PRLIs */
@@ -767,7 +764,6 @@ struct lpfc_vport {
767764
/* There is a single nvme instance per vport. */
768765
struct nvme_fc_local_port *localport;
769766
uint8_t nvmei_support; /* driver supports NVME Initiator */
770-
uint32_t last_fcp_wqidx;
771767
uint32_t rcv_flogi_cnt; /* How many unsol FLOGIs ACK'd. */
772768
};
773769

@@ -1060,8 +1056,6 @@ struct lpfc_hba {
10601056

10611057
struct lpfc_dmabuf hbqslimp;
10621058

1063-
uint16_t pci_cfg_value;
1064-
10651059
uint8_t fc_linkspeed; /* Link speed after last READ_LA */
10661060

10671061
uint32_t fc_eventTag; /* event tag for link attention */
@@ -1088,7 +1082,6 @@ struct lpfc_hba {
10881082

10891083
struct lpfc_stats fc_stat;
10901084

1091-
struct lpfc_nodelist fc_fcpnodev; /* nodelist entry for no device */
10921085
uint32_t nport_event_cnt; /* timestamp for nlplist entry */
10931086

10941087
uint8_t wwnn[8];
@@ -1229,9 +1222,6 @@ struct lpfc_hba {
12291222
uint32_t hbq_count; /* Count of configured HBQs */
12301223
struct hbq_s hbqs[LPFC_MAX_HBQS]; /* local copy of hbq indicies */
12311224

1232-
atomic_t fcp_qidx; /* next FCP WQ (RR Policy) */
1233-
atomic_t nvme_qidx; /* next NVME WQ (RR Policy) */
1234-
12351225
phys_addr_t pci_bar0_map; /* Physical address for PCI BAR0 */
12361226
phys_addr_t pci_bar1_map; /* Physical address for PCI BAR1 */
12371227
phys_addr_t pci_bar2_map; /* Physical address for PCI BAR2 */

0 commit comments

Comments
 (0)