mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
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>
This commit is contained in:
parent
8005c49d9a
commit
e8f937da74
1 changed files with 0 additions and 35 deletions
|
@ -178,41 +178,6 @@ static void del_edac_pci_from_global_list(struct edac_pci_ctl_info *pci)
|
||||||
INIT_LIST_HEAD(&pci->link);
|
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()
|
* edac_pci_workq_function()
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue