aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82860_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/i82860_edac.c')
-rw-r--r--drivers/edac/i82860_edac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c
index 942129df0212..688854260a0e 100644
--- a/drivers/edac/i82860_edac.c
+++ b/drivers/edac/i82860_edac.c
@@ -237,9 +237,10 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev)
237 237
238 debugf0("%s()\n", __func__); 238 debugf0("%s()\n", __func__);
239 239
240 mci = edac_mc_find_mci_by_pdev(pdev); 240 if ((mci = edac_mc_del_mc(pdev)) == NULL)
241 if ((mci != NULL) && (edac_mc_del_mc(mci) == 0)) 241 return;
242 edac_mc_free(mci); 242
243 edac_mc_free(mci);
243} 244}
244 245
245static const struct pci_device_id i82860_pci_tbl[] __devinitdata = { 246static const struct pci_device_id i82860_pci_tbl[] __devinitdata = {