summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2015-11-18 08:00:05 -0500
committerBorislav Petkov <bp@suse.de>2015-11-18 08:00:05 -0500
commite8f937da744fe13505720a2709c82b182f730fcf (patch)
tree0a6c243ef0d7a9a1f13308af9fa471511f6f6a02 /drivers/edac
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
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')
-rw-r--r--drivers/edac/edac_pci.c35
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)
178 INIT_LIST_HEAD(&pci->link); 178 INIT_LIST_HEAD(&pci->link);
179} 179}
180 180
181#if 0
182/* Older code, but might use in the future */
183
184/*
185 * edac_pci_find()
186 * Search for an edac_pci_ctl_info structure whose index is 'idx'
187 *
188 * If found, return a pointer to the structure
189 * Else return NULL.
190 *
191 * Caller must hold pci_ctls_mutex.
192 */
193struct edac_pci_ctl_info *edac_pci_find(int idx)
194{
195 struct list_head *item;
196 struct edac_pci_ctl_info *pci;
197
198 /* Iterage over list, looking for exact match of ID */
199 list_for_each(item, &edac_pci_list) {
200 pci = list_entry(item, struct edac_pci_ctl_info, link);
201
202 if (pci->pci_idx >= idx) {
203 if (pci->pci_idx == idx)
204 return pci;
205
206 /* not on list, so terminate early */
207 break;
208 }
209 }
210
211 return NULL;
212}
213EXPORT_SYMBOL_GPL(edac_pci_find);
214#endif
215
216/* 181/*
217 * edac_pci_workq_function() 182 * edac_pci_workq_function()
218 * 183 *