Skip to content

Commit 328e4df

Browse files
tititiou36bjorn-helgaas
authored andcommitted
PCI: endpoint: Remove unused field in struct pci_epf_group
In "struct pci_epf_group", the 'type_group' field is unused. This was added, but already unused, by commit 70b3740 ("PCI: endpoint: Automatically create a function specific attributes group"). Thus, remove it. Found with cppcheck, unusedStructMember. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/6507d44b6c60a19af35a605e2d58050be8872ab6.1712341008.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 1613e60 commit 328e4df

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/pci/endpoint/pci-ep-cfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct pci_epf_group {
2323
struct config_group group;
2424
struct config_group primary_epc_group;
2525
struct config_group secondary_epc_group;
26-
struct config_group *type_group;
2726
struct delayed_work cfs_work;
2827
struct pci_epf *epf;
2928
int index;

0 commit comments

Comments
 (0)