From: Christophe JAILLET Date: Fri, 5 Apr 2024 18:16:59 +0000 (+0200) Subject: PCI: endpoint: Remove unused field in struct pci_epf_group X-Git-Tag: v6.11-rc1~97^2~19^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=328e4dffbeecc0f2cc5a149dee6c11a0577c9671;p=thirdparty%2Fkernel%2Flinux.git 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 70b3740f2c19 ("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 Signed-off-by: Krzysztof WilczyƄski Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index 3b21e28f9b591..d712c7a866d26 100644 --- a/drivers/pci/endpoint/pci-ep-cfs.c +++ b/drivers/pci/endpoint/pci-ep-cfs.c @@ -23,7 +23,6 @@ struct pci_epf_group { struct config_group group; struct config_group primary_epc_group; struct config_group secondary_epc_group; - struct config_group *type_group; struct delayed_work cfs_work; struct pci_epf *epf; int index;