diff options
author | Borislav Petkov <bp@suse.de> | 2015-11-18 14:00:05 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-11-18 14:00:05 +0100 |
commit | e8f937da744fe13505720a2709c82b182f730fcf (patch) | |
tree | 0a6c243ef0d7a9a1f13308af9fa471511f6f6a02 /drivers/edac/edac_pci.c | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-e8f937da744fe13505720a2709c82b182f730fcf.tar.xz linux-e8f937da744fe13505720a2709c82b182f730fcf.zip |
EDAC, pci: Remove old disabled code
Remove an unused edac_pci_find() function iterating over edac_pci_list.
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_pci.c')
-rw-r--r-- | drivers/edac/edac_pci.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index 2cf44b4db80c..5034385c47e6 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c @@ -178,41 +178,6 @@ static void del_edac_pci_from_global_list(struct edac_pci_ctl_info *pci) INIT_LIST_HEAD(&pci->link); } -#if 0 -/* Older code, but might use in the future */ - -/* - * edac_pci_find() - * Search for an edac_pci_ctl_info structure whose index is 'idx' - * - * If found, return a pointer to the structure - * Else return NULL. - * - * Caller must hold pci_ctls_mutex. - */ -struct edac_pci_ctl_info *edac_pci_find(int idx) -{ - struct list_head *item; - struct edac_pci_ctl_info *pci; - - /* Iterage over list, looking for exact match of ID */ - list_for_each(item, &edac_pci_list) { - pci = list_entry(item, struct edac_pci_ctl_info, link); - - if (pci->pci_idx >= idx) { - if (pci->pci_idx == idx) - return pci; - - /* not on list, so terminate early */ - break; - } - } - - return NULL; -} -EXPORT_SYMBOL_GPL(edac_pci_find); -#endif - /* * edac_pci_workq_function() * |